Enum Class NormalizedNodeStreamVersion
java.lang.Object
java.lang.Enum<NormalizedNodeStreamVersion>
org.opendaylight.yangtools.yang.data.codec.binfmt.NormalizedNodeStreamVersion
- All Implemented Interfaces:
Serializable,Comparable<NormalizedNodeStreamVersion>,Constable
Enumeration of all stream versions this implementation supports on both input and output.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic NormalizedNodeStreamVersioncurrent()Return the current runtime version.abstract NormalizedNodeDataOutputnewDataOutput(DataOutput output) Creates a newNormalizedNodeDataOutputinstance that writes to the given output.static NormalizedNodeStreamVersionReturns the enum constant of this class with the specified name.static NormalizedNodeStreamVersion[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MAGNESIUM
@Deprecated(since="11.0.0", forRemoval=true) public static final NormalizedNodeStreamVersion MAGNESIUMDeprecated, for removal: This API element is subject to removal in a future version.First shipping is Magnesium. Does not supportBigIntegermirroring it being superseded byUint64inValueNode.body(). -
POTASSIUM
First shipping is Potassium. Does not supportAugmentationIdentifiernorAugmentationNode.
-
-
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
-
current
Return the current runtime version. Guaranteed to not throwUnsupportedOperationExceptionfromnewDataOutput(DataOutput).- Returns:
- Current runtime version.
-
newDataOutput
Creates a newNormalizedNodeDataOutputinstance that writes to the given output.- Parameters:
output- the DataOutput to write to- Returns:
- a new
NormalizedNodeDataOutputinstance - Throws:
NullPointerException- ifoutputis nullUnsupportedOperationException- if this version cannot be created in this runtime
-