|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<MeasType>
net.talvi.puffinplot.data.MeasType
public enum MeasType
The type of measurement which was performed on a sample or set of samples.
Enum Constant Summary | |
---|---|
CONTINUOUS
measurement was on a continuous long core or u-channel |
|
DISCRETE
measurement was on a discrete sample |
|
NONE
a measurement run was recorded, but no measurement was actually made |
|
UNKNOWN
the measurement type data could not be interpreted |
|
UNSET
this value has not yet been set |
Method Summary | |
---|---|
static MeasType |
fromString(java.lang.String string)
Creates a measurement type from a string representation. |
java.lang.String |
getColumnHeader()
Returns a suitable column header for sample identifiers. |
boolean |
isActualMeasurement()
Returns true if this field corresponds to an actual measurement. |
boolean |
isContinuous()
Returns true if this field is CONTINUOUS . |
boolean |
isDiscrete()
Returns true if this field is DISCRETE . |
static MeasType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static MeasType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final MeasType DISCRETE
public static final MeasType CONTINUOUS
public static final MeasType NONE
public static final MeasType UNSET
public static final MeasType UNKNOWN
Method Detail |
---|
public static MeasType[] values()
for (MeasType c : MeasType.values()) System.out.println(c);
public static MeasType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static MeasType fromString(java.lang.String string)
string
- a string representation of a measurement type
public java.lang.String getColumnHeader()
sample namefor discrete measurements and
depthfor continuous measurements.
public boolean isActualMeasurement()
true
if this field corresponds to an actual measurement.
This is the case if the field is DISCRETE
or CONTINUOUS
rather than one of the fields indicating a non-existent or unknown
measurement type.
true
if this field corresponds to an actual measurementpublic boolean isDiscrete()
true
if this field is DISCRETE
. Convenience method.
true
if this field is DISCRETE
public boolean isContinuous()
true
if this field is CONTINUOUS
. Convenience method.
true
if this field is CONTINUOUS
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |