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

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

Introduction

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

The text is from its open source code.

Constructor

FloatRange(float number)

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

FloatRange(Number number)

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

FloatRange(float number1, float number2)

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

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

FloatRange(Number number1, Number number2)

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

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

Method

booleancontainsFloat(float value)

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

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

booleancontainsRange(Range range)

Tests whether the specified range occurs entirely within this range using float comparison.

null is handled and returns false.

booleanequals(Object obj)

Compares this range to another object to test if they are equal.

.
doublegetMaximumDouble()

Gets the maximum number in this range as a double.

floatgetMaximumFloat()

Gets the maximum number in this range as a float.

doublegetMinimumDouble()

Gets the minimum number in this range as a double.

floatgetMinimumFloat()

Gets the minimum number in this range as a float.

booleanoverlapsRange(Range range)

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

null is handled and returns false.