public final class StratumType extends Object implements Comparable<StratumType>
Modifier and Type | Field and Description |
---|---|
static StratumType |
PRIMARY_REFERENCE
Constant for the "Primary reference" stratum type.
|
static StratumType |
SECONDARY_REFERENCE
Constant for the "Secondary reference" stratum type.
|
static StratumType |
UNSPECIFIED
Constant for the "Unspecified or unavailable" stratum type.
|
static List<StratumType> |
VALUES
A list of all the stratum type constants.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(StratumType that) |
int |
getOrdinal()
Returns the number associated with this stratum type.
|
static StratumType |
getTypeByOrdinal(int type)
Returns the stratum type when specified by its ordinal.
|
String |
toString() |
public static final StratumType UNSPECIFIED
public static final StratumType PRIMARY_REFERENCE
public static final StratumType SECONDARY_REFERENCE
public static final List<StratumType> VALUES
public static StratumType getTypeByOrdinal(int type)
type
- public int getOrdinal()
public int compareTo(StratumType that)
compareTo
in interface Comparable<StratumType>
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.