Class Identifier<T extends Identifier<T>>
- java.lang.Object
-
- ch.systemsx.cisd.openbis.generic.shared.basic.dto.Identifier<T>
-
- All Implemented Interfaces:
IIdentifierHolder
,java.io.Serializable
,java.lang.Comparable<T>
- Direct Known Subclasses:
NewBasicExperiment
,NewExperiment
,NewProject
,NewSample
public class Identifier<T extends Identifier<T>> extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<T>, IIdentifierHolder
An identifier.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Identifier.IdentifierHolderComparator
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
IDENTIFIER_COLUMN
static java.util.Comparator<IIdentifierHolder>
IDENTIFIER_HOLDER_COMPARATOR
-
Constructor Summary
Constructors Constructor Description Identifier()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(T o)
boolean
equals(java.lang.Object obj)
java.lang.String
getIdentifier()
java.lang.String
getPermID()
int
hashCode()
void
setIdentifier(java.lang.String identifier)
void
setPermID(java.lang.String permID)
protected static java.lang.String
toUpperCase(java.lang.String identifierOrNull)
-
-
-
Field Detail
-
IDENTIFIER_COLUMN
public static final java.lang.String IDENTIFIER_COLUMN
- See Also:
- Constant Field Values
-
IDENTIFIER_HOLDER_COMPARATOR
public static final java.util.Comparator<IIdentifierHolder> IDENTIFIER_HOLDER_COMPARATOR
-
-
Method Detail
-
toUpperCase
protected static java.lang.String toUpperCase(java.lang.String identifierOrNull)
-
setPermID
public void setPermID(java.lang.String permID)
-
getPermID
public java.lang.String getPermID()
-
setIdentifier
public final void setIdentifier(java.lang.String identifier)
-
getIdentifier
public final java.lang.String getIdentifier()
- Specified by:
getIdentifier
in interfaceIIdentifierHolder
-
compareTo
public final int compareTo(T o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<T extends Identifier<T>>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-