Package uk.ac.qmul.eecs.depic.patterns
Class Range<T extends java.lang.Number & java.lang.Comparable<T>>
- java.lang.Object
-
- uk.ac.qmul.eecs.depic.patterns.Range<T>
-
-
Field Summary
Fields Modifier and Type Field and Description protected T
end
static Range<java.lang.Double>
NORMALIZED_RANGE_D
static Range<java.lang.Float>
NORMALIZED_RANGE_F
protected T
start
-
Constructor Summary
Constructors Modifier Constructor and Description protected
Range()
Range(T t1, T t2)
Range(Range<T> r1, Range<T> r2)
Creates a new instance by comparingmm1
andmm2
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description T
getEnd()
T
getStart()
float
lenght()
java.lang.String
toString()
-
-
-
Field Detail
-
NORMALIZED_RANGE_D
public static final Range<java.lang.Double> NORMALIZED_RANGE_D
-
NORMALIZED_RANGE_F
public static final Range<java.lang.Float> NORMALIZED_RANGE_F
-
-
Constructor Detail
-
Range
protected Range()
-
Range
public Range(Range<T> r1, Range<T> r2)
Creates a new instance by comparingmm1
andmm2
. The minimum of this object will be the minimum value betweenmm1.getMin()
andmm2.getMin()
. The maximum of this object will be the maximum value betweenmm1.getMax()
andmm2.getMax()
.- Parameters:
r1
- the former Range whose min and max are to be comparedr2
- the latter Range whose min and max are to be compared
-
-