public final class ModeType extends Object implements Comparable<ModeType>
Modifier and Type | Field and Description |
---|---|
static ModeType |
BROADCAST
Constant for the "Broadcast mode" mode type.
|
static ModeType |
CLIENT
Constant for the "Client mode" mode type.
|
static ModeType |
RESERVED
Constant for the "Reserved mode" mode type.
|
static ModeType |
RESERVED_FOR_NTP_CONTROL
Constant for the "Reserved for NTP control message" mode type.
|
static ModeType |
RESERVED_FOR_PRIVATE_USE
Constant for the "Reserved for private use" mode type.
|
static ModeType |
RESERVED_PASSIVE
Constant for the "Symmetric passive mode" mode type.
|
static ModeType |
SERVER
Constant for the "Server mode" mode type.
|
static ModeType |
SYMMETRIC_ACTIVE
Constant for the "Symmetric active mode" mode type.
|
static List<ModeType> |
VALUES
A list of all the mode type constants.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ModeType that) |
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() |
public static final ModeType RESERVED
public static final ModeType SYMMETRIC_ACTIVE
public static final ModeType RESERVED_PASSIVE
public static final ModeType CLIENT
public static final ModeType SERVER
public static final ModeType BROADCAST
public static final ModeType RESERVED_FOR_NTP_CONTROL
public static final ModeType RESERVED_FOR_PRIVATE_USE
public static ModeType getTypeByOrdinal(int type)
type
- public int getOrdinal()
public int compareTo(ModeType that)
compareTo
in interface Comparable<ModeType>
Copyright © 2003–2013 The Apache Software Foundation. All rights reserved.