@Beta public enum ABIVersion extends Enum<ABIVersion> implements org.opendaylight.yangtools.concepts.WritableObject
Enum Constant and Description |
---|
BORON
Initial ABI version, as shipped with Boron Simultaneous release.
|
TEST_FUTURE_VERSION
Version which is newer than any other version.
|
TEST_PAST_VERSION
Version which is older than any other version.
|
Modifier and Type | Method and Description |
---|---|
static @NonNull ABIVersion |
current()
Return the codebase-native ABI version.
|
static @NonNull ABIVersion |
inexactReadFrom(@NonNull DataInput in) |
static @NonNull ABIVersion |
readFrom(@NonNull DataInput in)
Read an
ABIVersion from a DataInput . |
short |
shortValue()
Return the unsigned short integer identifying this version.
|
static @NonNull ABIVersion |
valueOf(short value)
Return the
ABIVersion corresponding to an unsigned short integer. |
static ABIVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ABIVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeTo(DataOutput out) |
public static final ABIVersion TEST_PAST_VERSION
public static final ABIVersion BORON
public static final ABIVersion TEST_FUTURE_VERSION
public static ABIVersion[] values()
for (ABIVersion c : ABIVersion.values()) System.out.println(c);
public static ABIVersion 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 short shortValue()
public static @NonNull ABIVersion current()
ABIVersion
public static @NonNull ABIVersion valueOf(short value) throws FutureVersionException, PastVersionException
ABIVersion
corresponding to an unsigned short integer. This method is provided for callers
which provide their own recovery strategy in case of version incompatibility.value
- Short integer as returned from shortValue()
ABIVersion
FutureVersionException
- if the specified integer identifies a future versionPastVersionException
- if the specified integer identifies a past version which is no longer supportedpublic void writeTo(DataOutput out) throws IOException
writeTo
in interface org.opendaylight.yangtools.concepts.WritableObject
IOException
public static @NonNull ABIVersion readFrom(@NonNull DataInput in) throws IOException
ABIVersion
from a DataInput
. This method is provided for callers which do not have
a recovery strategy for dealing with unsupported versions.in
- Input from which to readABIVersion
IOException
- If read fails or an unsupported version is encounteredpublic static @NonNull ABIVersion inexactReadFrom(@NonNull DataInput in) throws IOException
IOException
Copyright © 2019 OpenDaylight. All rights reserved.