public enum DatagramVersion extends Enum<DatagramVersion>
Enum Constant and Description |
---|
VERSION5 |
Modifier and Type | Field and Description |
---|---|
int |
value |
Modifier and Type | Method and Description |
---|---|
static DatagramVersion |
from(io.netty.buffer.ByteBuf buffer) |
String |
toString() |
static DatagramVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DatagramVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeBson(org.bson.BsonWriter bsonWriter,
SampleDatagramEnrichment enr) |
public static final DatagramVersion VERSION5
public static DatagramVersion[] values()
for (DatagramVersion c : DatagramVersion.values()) System.out.println(c);
public static DatagramVersion 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 DatagramVersion from(io.netty.buffer.ByteBuf buffer) throws InvalidPacketException
InvalidPacketException
public String toString()
toString
in class Enum<DatagramVersion>
public void writeBson(org.bson.BsonWriter bsonWriter, SampleDatagramEnrichment enr)
Copyright © 2020. All rights reserved.