Package org.opennms.netmgt.model
Class PrimaryType
- java.lang.Object
-
- org.opennms.netmgt.model.PrimaryType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PrimaryType>
@Embeddable public class PrimaryType extends java.lang.Object implements java.lang.Comparable<PrimaryType>, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static PrimaryType
NOT_ELIGIBLE
static PrimaryType
PRIMARY
static PrimaryType
SECONDARY
-
Constructor Summary
Constructors Modifier Constructor Description protected
PrimaryType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(PrimaryType collType)
boolean
equals(java.lang.Object o)
static PrimaryType
get(char code)
static PrimaryType
get(java.lang.Object code)
static java.util.List<PrimaryType>
getAllTypes()
char
getCharCode()
java.lang.String
getCode()
int
hashCode()
Hibernate objects should not have any specific hashCode() implementation since it should always give the same object for the same row anyways.boolean
isGreaterThan(PrimaryType collType)
boolean
isLessThan(PrimaryType collType)
PrimaryType
max(PrimaryType collType)
PrimaryType
min(PrimaryType collType)
void
setCharCode(char collType)
java.lang.String
toString()
-
-
-
Field Detail
-
PRIMARY
public static final PrimaryType PRIMARY
-
SECONDARY
public static final PrimaryType SECONDARY
-
NOT_ELIGIBLE
public static final PrimaryType NOT_ELIGIBLE
-
-
Method Detail
-
getCode
public java.lang.String getCode()
-
getCharCode
public char getCharCode()
-
setCharCode
public void setCharCode(char collType)
-
hashCode
public int hashCode()
Hibernate objects should not have any specific hashCode() implementation since it should always give the same object for the same row anyways.- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
compareTo
public int compareTo(PrimaryType collType)
- Specified by:
compareTo
in interfacejava.lang.Comparable<PrimaryType>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
isLessThan
public boolean isLessThan(PrimaryType collType)
-
isGreaterThan
public boolean isGreaterThan(PrimaryType collType)
-
max
public PrimaryType max(PrimaryType collType)
-
min
public PrimaryType min(PrimaryType collType)
-
get
public static PrimaryType get(char code)
-
get
public static PrimaryType get(java.lang.Object code)
-
getAllTypes
public static java.util.List<PrimaryType> getAllTypes()
-
-