Package org.orekit.time
Class TimeUtils
- java.lang.Object
-
- org.orekit.time.TimeUtils
-
public class TimeUtils extends Object
Time-related utilities.- Since:
- 14.0
- Author:
- Luc Maisonobe
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <S extends TimeStamped>
Searliest(S ts1, S ts2)Get the earliest object from a pair.static <S extends TimeStamped>
Slatest(S ts1, S ts2)Get the earliest object from a pair.
-
-
-
Method Detail
-
earliest
public static <S extends TimeStamped> S earliest(S ts1, S ts2)
Get the earliest object from a pair.- Type Parameters:
S- type of the time stamped objects- Parameters:
ts1- first objectts2- second object- Returns:
- the earliest occurring object among #@code ts1} and
ts2
-
earliest
public static <T extends CalculusFieldElement<T>,S extends FieldTimeStamped<T>> S earliest(S ts1, S ts2)
Get the earliest object from a pair.- Type Parameters:
T- type of the field elementsS- type of the time stamped objects- Parameters:
ts1- first objectts2- second object- Returns:
- the earliest occurring object among #@code ts1} and
ts2
-
latest
public static <S extends TimeStamped> S latest(S ts1, S ts2)
Get the earliest object from a pair.- Type Parameters:
S- type of the time stamped objects- Parameters:
ts1- first objectts2- second object- Returns:
- the earliest occurring object among #@code ts1} and
ts2
-
latest
public static <T extends CalculusFieldElement<T>,S extends FieldTimeStamped<T>> S latest(S ts1, S ts2)
Get the earliest object from a pair.- Type Parameters:
T- type of the field elementsS- type of the time stamped objects- Parameters:
ts1- first objectts2- second object- Returns:
- the earliest occurring object among #@code ts1} and
ts2
-
-