|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.geosolutions.jaiext.range.Range
public abstract class Range
Abstract class used for checking if a selected value is inside the selected Range. All the methods throw an UnsupportedOperationException
but for every subclass one of these methods is overridden with the correct functionality. These 6 methods are different only for the data type
used. In this way it is possible to reach a better performance by using primitive variables than generic. All the subclasses can contain a Range
composed by a minimum and a maximum or a single-point Range. For Double and Float data type the NaN data can be used only with a single-point
Range.
Nested Class Summary | |
---|---|
static class |
Range.DataType
|
Constructor Summary | |
---|---|
Range()
|
Method Summary | ||
---|---|---|
boolean |
contains(byte value)
Method for checking if a byte value is contained inside the Range |
|
boolean |
contains(double value)
Method for checking if a double value is contained inside the Range |
|
boolean |
contains(float value)
Method for checking if a float value is contained inside the Range |
|
boolean |
contains(int value)
Method for checking if an integer value is contained inside the Range |
|
boolean |
contains(long value)
Method for checking if a long value is contained inside the Range |
|
boolean |
contains(short value)
Method for checking if a short/ushort value is contained inside the Range |
|
|
contains(T value)
Method for checking if a Generic value is contained inside the Range |
|
abstract Range.DataType |
getDataType()
Returns the Range data Type |
|
abstract Number |
getMax()
Returns the maximum bound of the Range |
|
abstract Number |
getMin()
Returns the minimum bound of the Range |
|
abstract boolean |
isPoint()
Indicates if the Range is a degenerated single point Range or not |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Range()
Method Detail |
---|
public boolean contains(byte value)
public boolean contains(short value)
public boolean contains(int value)
public boolean contains(float value)
public boolean contains(double value)
public boolean contains(long value)
public <T extends Number & Comparable<T>> boolean contains(T value)
public abstract Range.DataType getDataType()
public abstract boolean isPoint()
public abstract Number getMax()
public abstract Number getMin()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |