public enum ModeType extends Enum<ModeType>
Enum Constant and Description |
---|
BROADCAST
Constant for the "Broadcast mode" mode type.
|
CLIENT
Constant for the "Client mode" mode type.
|
RESERVED
Constant for the "Reserved mode" mode type.
|
RESERVED_FOR_NTP_CONTROL
Constant for the "Reserved for NTP control message" mode type.
|
RESERVED_FOR_PRIVATE_USE
Constant for the "Reserved for private use" mode type.
|
RESERVED_PASSIVE
Constant for the "Symmetric passive mode" mode type.
|
SERVER
Constant for the "Server mode" mode type.
|
SYMMETRIC_ACTIVE
Constant for the "Symmetric active mode" mode type.
|
Modifier and Type | Method and Description |
---|---|
int |
getOrdinal()
Returns the number associated with this mode type.
|
static ModeType |
getTypeByOrdinal(int type)
Returns the mode type when specified by its ordinal.
|
String |
toString() |
static ModeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ModeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModeType SYMMETRIC_ACTIVE
public static final ModeType RESERVED_PASSIVE
public static final ModeType RESERVED_FOR_NTP_CONTROL
public static final ModeType RESERVED_FOR_PRIVATE_USE
public static ModeType[] values()
for (ModeType c : ModeType.values()) System.out.println(c);
public static ModeType 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 ModeType getTypeByOrdinal(int type)
type
- public int getOrdinal()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.