public enum StratumType extends Enum<StratumType>
Enum Constant and Description |
---|
PRIMARY_REFERENCE
Constant for the "Primary reference" stratum type.
|
SECONDARY_REFERENCE
Constant for the "Secondary reference" stratum type.
|
UNSPECIFIED
Constant for the "Unspecified or unavailable" stratum type.
|
Modifier and Type | Method and Description |
---|---|
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() |
static StratumType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StratumType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StratumType UNSPECIFIED
public static final StratumType PRIMARY_REFERENCE
public static final StratumType SECONDARY_REFERENCE
public static StratumType[] values()
for (StratumType c : StratumType.values()) System.out.println(c);
public static StratumType 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 StratumType getTypeByOrdinal(int type)
type
- public int getOrdinal()
public String toString()
toString
in class Enum<StratumType>
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.