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

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

Introduction

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

The text is from its open source code.

Constructor

LongRange(long number1, long number2)

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

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

LongRange(Number number1, Number number2)

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

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

Method

booleancontainsLong(long value)

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

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

longgetMaximumLong()

Gets the maximum number in this range as a long.

longgetMinimumLong()

Gets the minimum number in this range as a long.

booleanoverlapsRange(Range range)

Tests whether the specified range overlaps with this range using long comparison.

null is handled and returns false.