public enum NodeIdEncoding extends Enum<NodeIdEncoding>
| Modifier and Type | Class and Description |
|---|---|
static class |
NodeIdEncoding.AsByte
Same constants as in
NodeIdEncoding, but as byte-field version, to be used with
switch-case statements that need compile-time primitive literals. |
| Enum Constant and Description |
|---|
ByteString |
FourByte |
Guid |
Numeric |
String |
TwoByte |
| Modifier and Type | Method and Description |
|---|---|
byte |
getBits()
Getter for the field
bits. |
static NodeIdEncoding |
getNodeIdEncoding(int bits)
getNodeIdEncoding.
|
IdType |
toIdentifierType()
toIdentifierType.
|
static NodeIdEncoding |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NodeIdEncoding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NodeIdEncoding TwoByte
public static final NodeIdEncoding FourByte
public static final NodeIdEncoding Numeric
public static final NodeIdEncoding String
public static final NodeIdEncoding Guid
public static final NodeIdEncoding ByteString
public static NodeIdEncoding[] values()
for (NodeIdEncoding c : NodeIdEncoding.values()) System.out.println(c);
public static NodeIdEncoding 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 static NodeIdEncoding getNodeIdEncoding(int bits)
getNodeIdEncoding.
bits - a int.NodeIdEncoding object.public byte getBits()
Getter for the field bits.
Copyright © 2026. All rights reserved.