Enum Plane
- java.lang.Object
-
- java.lang.Enum<Plane>
-
- cern.accsoft.steering.util.meas.data.Plane
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HORIZONTALVERTICAL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.String tag)compares the plane with the tagstatic PlanefromInt(int intValue)returns the plane which corresponds to the given int valuestatic PlanefromTag(java.lang.String tag)returns the plane, which corresponds to the given tagjava.lang.IntegergetIntValue()java.lang.StringgetTag()java.lang.StringtoString()static PlanevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Plane[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static Plane[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Plane c : Plane.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Plane valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getTag
public java.lang.String getTag()
- Returns:
- the tag (which e.g. is used in the database) of the plane
-
getIntValue
public java.lang.Integer getIntValue()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<Plane>
-
equals
public boolean equals(java.lang.String tag)
compares the plane with the tag- Parameters:
tag- the tag to compare to- Returns:
- true, if the tag corresponds to the plane, false if not
-
fromTag
public static final Plane fromTag(java.lang.String tag)
returns the plane, which corresponds to the given tag- Parameters:
tag- the tag for which to find the plane- Returns:
- the plane
-
fromInt
public static final Plane fromInt(int intValue)
returns the plane which corresponds to the given int value- Parameters:
intValue- the integer value for which to get the plane- Returns:
- the plane
-
-