Java org.apache.commons.lang.math IntRange fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.lang.math IntRange fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.lang.math IntRange.

The text is from its open source code.

Constructor

IntRange(int number)

Constructs a new IntRange using the specified number as both the minimum and maximum in this range.

IntRange(Number number)

Constructs a new IntRange using the specified number as both the minimum and maximum in this range.

IntRange(int number1, int number2)

Constructs a new IntRange with the specified minimum and maximum numbers (both inclusive).

The arguments may be passed in the order (min,max) or (max,min).

IntRange(Number number1, Number number2)

Constructs a new IntRange with the specified minimum and maximum numbers (both inclusive).

The arguments may be passed in the order (min,max) or (max,min).

Method

booleancontainsInteger(int value)

Tests whether the specified int occurs within this range using int comparison.

This implementation overrides the superclass for performance as it is the most common case.

intgetMaximumInteger()

Gets the maximum number in this range as a int.

intgetMinimumInteger()

Gets the minimum number in this range as a int.