Package org.orekit.utils
Enum ExpungePolicy
- java.lang.Object
-
- java.lang.Enum<ExpungePolicy>
-
- org.orekit.utils.ExpungePolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<ExpungePolicy>
public enum ExpungePolicy extends Enum<ExpungePolicy>
Expunge policy to apply when aTimeSpanMap
exceeds its capacity.- Since:
- 13.1
- Author:
- Luc Maisonobe
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXPUNGE_EARLIEST
Expunge the span before the first transition.EXPUNGE_FARTHEST
Expunge either the earliest or latest span, depending on which is farthest from the last added transition.EXPUNGE_LATEST
Expunge the span after the latest transition.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExpungePolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static ExpungePolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXPUNGE_EARLIEST
public static final ExpungePolicy EXPUNGE_EARLIEST
Expunge the span before the first transition.Note that if we add data to the map in reverse chronological order, then entries exceeding capacity are expunged as soon as we attempt to add them, so this policy should probably not be used in reverse chronological order.
-
EXPUNGE_LATEST
public static final ExpungePolicy EXPUNGE_LATEST
Expunge the span after the latest transition.Note that if we add data to the map in chronological order, then entries exceeding capacity are expunged as soon as we attempt to add them, so this policy should probably not be used in chronological order.
-
EXPUNGE_FARTHEST
public static final ExpungePolicy EXPUNGE_FARTHEST
Expunge either the earliest or latest span, depending on which is farthest from the last added transition.
-
-
Method Detail
-
values
public static ExpungePolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ExpungePolicy c : ExpungePolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExpungePolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-