fr.cnes.sirius.patrius.utils
Class GenericInterval<T>

java.lang.Object
  extended by fr.cnes.sirius.patrius.utils.AbstractInterval
      extended by fr.cnes.sirius.patrius.utils.GenericInterval<T>
Type Parameters:
T - the nature of ending points
All Implemented Interfaces:
Serializable

public class GenericInterval<T>
extends AbstractInterval
implements Serializable

- Generic class to describe an interval.

- The nature of the upper data and lower data are unknown yet : this class is only used to create easily any interval.

- This class is only a description of an interval, without particular operations.

Since:
1.0
Version:
$Id: GenericInterval.java 17584 2017-05-10 13:26:39Z bignon $
Author:
Thomas TRAPIER
See Also:
class, Serialized Form
Use sample :

An interval of Doubles ]1.0,2.0[ is created this way :

Interval interval = new Interval(IntervalEndPointType.OPENED, 1.0, 2.0, IntervalEndPointType.OPENED);

Concurrency :
immutable

Constructor Summary
GenericInterval(IntervalEndpointType lowerEndPointIn, T lowerDataIn, T upperDataIn, IntervalEndpointType upperEndPointIn)
          Constructor
Constructor : the T type must be defined.
 
Method Summary
 T getLowerData()
           
 T getUpperData()
           
 
Methods inherited from class fr.cnes.sirius.patrius.utils.AbstractInterval
getLowerEndPoint, getUpperEndPoint, setLowerEndPoint, setUpperEndPoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericInterval

public GenericInterval(IntervalEndpointType lowerEndPointIn,
                       T lowerDataIn,
                       T upperDataIn,
                       IntervalEndpointType upperEndPointIn)
Constructor
Constructor : the T type must be defined.

Parameters:
lowerDataIn - lower end data value
upperDataIn - upper end data value
lowerEndPointIn - lower end point state
upperEndPointIn - upper end point state
Since:
1.0
Method Detail

getUpperData

public final T getUpperData()
Returns:
the upperData

getLowerData

public final T getLowerData()
Returns:
the lowerData


Copyright © 2017 CNES. All Rights Reserved.