Package org.n52.shetland.util
Class MinMax<T>
java.lang.Object
org.n52.shetland.util.MinMax<T>
- Type Parameters:
T- the type
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanextend(MinMax<T> minmax, Comparator<? super T> c) * Extend thisMinMaxto includeminmax.extend(T t, Comparator<? super T> c) Extend thisMinMaxto includet.Get the value of maximumGet the value of minimuminthashCode()booleanisEmpty()Checks if this MinMax is emptysetMaximum(T maximum) Set the value of maximumsetMinimum(T minimum) Set the value of minimumtoString()
-
Constructor Details
-
MinMax
-
MinMax
public MinMax()
-
-
Method Details
-
getMinimum
Get the value of minimum- Returns:
- the value of minimum
-
setMinimum
Set the value of minimum- Parameters:
minimum- new value of minimum- Returns:
- this
-
getMaximum
Get the value of maximum- Returns:
- the value of maximum
-
setMaximum
Set the value of maximum- Parameters:
maximum- new value of maximum- Returns:
- this
-
extend
Extend thisMinMaxto includet.- Parameters:
t- the object to includec- the comparator used to compare the values- Returns:
- this
-
extend
* Extend thisMinMaxto includeminmax.- Parameters:
minmax- theMinMaxto includec- the comparator- Returns:
- this
-
isEmpty
public boolean isEmpty()Checks if this MinMax is empty- Returns:
- if it is empty
-
equals
-
hashCode
public int hashCode() -
toString
-