Package smetana.core
Enum FieldOffset
- java.lang.Object
-
- java.lang.Enum<FieldOffset>
-
- smetana.core.FieldOffset
-
- All Implemented Interfaces:
Serializable
,Comparable<FieldOffset>
public enum FieldOffset extends Enum<FieldOffset>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSign()
FieldOffset
negative()
static FieldOffset
valueOf(String name)
Returns the enum constant of this type with the specified name.static FieldOffset[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
zero
public static final FieldOffset zero
-
externalHolder
public static final FieldOffset externalHolder
-
link
public static final FieldOffset link
-
id_link
public static final FieldOffset id_link
-
s
public static final FieldOffset s
-
key
public static final FieldOffset key
-
seq_link
public static final FieldOffset seq_link
-
name
public static final FieldOffset name
-
-
Method Detail
-
values
public static FieldOffset[] 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 (FieldOffset c : FieldOffset.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FieldOffset valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getSign
public int getSign()
-
negative
public FieldOffset negative()
-
-