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

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

Introduction

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

The text is from its open source code.

Constructor

NumberRange(Number num1, Number num2)

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

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

NumberRange(Number num)

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

Method

booleancontainsNumber(Number number)

Tests whether the specified number occurs within this range.

null is handled and returns false.