public enum SegmentVersion extends Enum<SegmentVersion>
Enum Constant and Description |
---|
V_10
Deprecated.
Use latest version V11
|
V_11
Deprecated.
Use latest version V11
|
V_12 |
Modifier and Type | Field and Description |
---|---|
static SegmentVersion |
LATEST_VERSION
Latest segment version
|
Modifier and Type | Method and Description |
---|---|
static byte |
asByte(SegmentVersion v) |
static SegmentVersion |
fromByte(byte v) |
static boolean |
isValid(byte v) |
static boolean |
isValid(SegmentVersion version) |
boolean |
onOrAfter(SegmentVersion other) |
static SegmentVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SegmentVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Deprecated public static final SegmentVersion V_10
@Deprecated public static final SegmentVersion V_11
public static final SegmentVersion V_12
public static final SegmentVersion LATEST_VERSION
public static SegmentVersion[] values()
for (SegmentVersion c : SegmentVersion.values()) System.out.println(c);
public static SegmentVersion 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 boolean onOrAfter(SegmentVersion other)
public static byte asByte(SegmentVersion v)
public static SegmentVersion fromByte(byte v)
public static boolean isValid(byte v)
public static boolean isValid(SegmentVersion version)
Copyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.