Enum Class Segment.SegType
- All Implemented Interfaces:
Serializable, Comparable<Segment.SegType>, Constable
- Enclosing class:
Segment
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Segment.SegTypefromTypeMask(int segTypeMask) booleanhasAll(int flags) booleanhasBoth()booleanhasByte()booleanhasBytes()booleanhasChar()booleanhasChars()booleanbooleanstatic Segment.SegTypeReturns the enum constant of this class with the specified name.static Segment.SegType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANCHOR
-
BASE
-
TEXT
-
REPEATED_TEXT
-
TEXT_ASCII
-
REPEATED_ASCII
-
REPEATED_SPACE
-
REPEATED_EOL
-
-
Field Details
-
flags
public final int flags
-
-
Constructor Details
-
SegType
private SegType(int flags)
-
-
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
-
hasAll
public boolean hasAll(int flags) -
hasLength
public boolean hasLength() -
hasOffset
public boolean hasOffset() -
hasBoth
public boolean hasBoth() -
hasChar
public boolean hasChar() -
hasChars
public boolean hasChars() -
hasByte
public boolean hasByte() -
hasBytes
public boolean hasBytes() -
fromTypeMask
-