Class Direction
- java.lang.Object
-
- ubic.gemma.model.analysis.expression.diff.Direction
-
- All Implemented Interfaces:
Serializable
,Comparable<Direction>
- Direct Known Subclasses:
DirectionEnum
public class Direction extends Object implements Serializable, Comparable<Direction>
Represents the direction of a change e.g. in expression. "Either" is needed because a gene/probe could be changed in two directions with respect to different conditions.
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Direction that)
boolean
equals(Object object)
static Direction
fromString(String value)
Creates an instance of Direction fromvalue
.String
getValue()
Gets the underlying value of this type safe enumeration.int
hashCode()
static List<String>
literals()
Returns an unmodifiable list containing the literals that are known by this enumeration.static List<String>
names()
Returns an unmodifiable list containing the names of the literals that are known by this enumeration.String
toString()
static List<Direction>
values()
Returns an unmodifiable list containing the actual enumeration instance values.
-
-
-
Method Detail
-
fromString
public static Direction fromString(String value)
Creates an instance of Direction fromvalue
.- Parameters:
value
- the value to create the Direction from.- Returns:
- new instance of Direction
-
literals
public static List<String> literals()
Returns an unmodifiable list containing the literals that are known by this enumeration.- Returns:
- A List containing the actual literals defined by this enumeration, this list can not be modified.
-
names
public static List<String> names()
Returns an unmodifiable list containing the names of the literals that are known by this enumeration.- Returns:
- A List containing the actual names of the literals defined by this enumeration, this list can not be modified.
-
values
public static List<Direction> values()
Returns an unmodifiable list containing the actual enumeration instance values.- Returns:
- A List containing the actual enumeration instance values.
-
compareTo
public int compareTo(Direction that)
- Specified by:
compareTo
in interfaceComparable<Direction>
- See Also:
Comparable.compareTo(Object)
-
getValue
public String getValue()
Gets the underlying value of this type safe enumeration.- Returns:
- the underlying value.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classObject
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object object)
- Overrides:
equals
in classObject
- See Also:
Object.equals(Object)
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-