|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.orekit.utils.GenericInterval<T>
T
- the nature of ending points.public class GenericInterval<T>
- Generic class to describe an interval.
- The generic element is the nature of the data defining the upper and lower boundaries.
- This class can be extended ; toString may be overriden.
An interval of Doubles ] 1.0 ; 2.0 [ is created this way :
Interval
Constructor Summary | |
---|---|
GenericInterval(IntervalEndpointType lowerEndpointIn,
T lowerDataIn,
T upperDataIn,
IntervalEndpointType upperEndpointIn)
Constructor. The input parameters have to be not null. Otherwise a MathIllegalArgumentException is thrown. |
Method Summary | |
---|---|
T |
getLowerData()
|
IntervalEndpointType |
getLowerEndpoint()
|
T |
getUpperData()
|
IntervalEndpointType |
getUpperEndpoint()
|
String |
toString()
This method returns a String representing the interval, with boundaries as brackets and the lower/upper values. Example : "] 0.0 , 1.2534 [" for an open interval with doubles. toString is called on the values. Warning : this representation is subject to change. This method may be overriden if convenient. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GenericInterval(IntervalEndpointType lowerEndpointIn, T lowerDataIn, T upperDataIn, IntervalEndpointType upperEndpointIn)
MathIllegalArgumentException
is thrown.
lowerDataIn
- lower end data valueupperDataIn
- upper end data valuelowerEndpointIn
- lower end point stateupperEndpointIn
- upper end point state
MathIllegalArgumentException
- when the interval is invalid (unchecked exception)Method Detail |
---|
public final IntervalEndpointType getLowerEndpoint()
public final T getLowerData()
public final T getUpperData()
public final IntervalEndpointType getUpperEndpoint()
public final String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |