Enum Class IntervalTier.InsertionStrategy
- All Implemented Interfaces:
Serializable
,Comparable<IntervalTier.InsertionStrategy>
,Constable
- Enclosing class:
IntervalTier
Insertion strategy used when adding new intervals
to the tier and an overlap occurs.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIgnore overlapsDivide intervals on overlap.Throw IllegalArgumentException on overlap -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static IntervalTier.InsertionStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALLOW_OVERLAPS
Ignore overlaps -
ERROR_ON_OVERLAP
Throw IllegalArgumentException on overlap -
DIVIDE_INTERVALS_ON_OVERLAP
Divide intervals on overlap. Given interval A and B, with A being the interval inserted- if A.start invalid input: '<' B.start invalid input: '&'invalid input: '&' A.end > B.start: B.start will be shifted to A.endinvalid input: '<'/>
- if A.start invalid input: '<' B.end invalid input: '&'invalid input: '&' A.end > B.end: B.end is shifted to A.start
- if A.start > B.start invalid input: '&'invalid input: '&' A.end invalid input: '<' B.end: new interval C(B.start, A.start) is created with empty label; B.start is shifted to A.end
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-