public enum Segment extends Enum<Segment> implements Comparable<Segment>
| Enum Constant and Description |
|---|
INCREMENTAL |
MAJOR |
MINOR |
SUBINCREMENTAL |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isMajorTo(Segment other)
Returns true if the given segment is more major than the other
|
static Segment |
of(int index) |
String |
toString() |
int |
value()
Returns the 0-based sendex index
|
static Segment |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Segment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfcompareTopublic static final Segment MAJOR
public static final Segment MINOR
public static final Segment INCREMENTAL
public static final Segment SUBINCREMENTAL
public static Segment[] values()
for (Segment c : Segment.values()) System.out.println(c);
public static Segment valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int value()
public static Segment of(int index)
public boolean isMajorTo(Segment other)
other - other segment to compareCopyright © 2008–2022 MojoHaus. All rights reserved.