Class Code<T extends Code<T>>
- java.lang.Object
-
- ch.systemsx.cisd.openbis.generic.shared.basic.dto.Code<T>
-
- All Implemented Interfaces:
ICodeHolder
,java.io.Serializable
,java.lang.Comparable<T>
- Direct Known Subclasses:
AbstractType
,DatabaseInstance
,DataStore
,ExternalDataManagementSystem
,NewDataSet
,NewMaterial
,PropertyType
,RelationshipType
,RoleAssignment
public class Code<T extends Code<T>> extends java.lang.Object implements java.io.Serializable, ICodeHolder, java.lang.Comparable<T>
A code.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CODE
static java.util.Comparator<ICodeHolder>
CODE_PROVIDER_COMPARATOR
-
Constructor Summary
Constructors Constructor Description Code()
-
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)
static java.util.List<java.lang.String>
extractCodes(ICodeHolder[] codeProviders)
static java.util.List<java.lang.String>
extractCodes(java.util.Collection<? extends ICodeHolder> codeProviders)
static java.lang.String[]
extractCodesToArray(java.util.Collection<? extends ICodeHolder> codeProviders)
java.lang.String
getCode()
Returns the code.int
hashCode()
void
setCode(java.lang.String code)
java.lang.String
toString()
-
-
-
Field Detail
-
CODE
public static final java.lang.String CODE
- See Also:
- Constant Field Values
-
CODE_PROVIDER_COMPARATOR
public static final java.util.Comparator<ICodeHolder> CODE_PROVIDER_COMPARATOR
-
-
Method Detail
-
setCode
public final void setCode(java.lang.String code)
-
getCode
public final java.lang.String getCode()
Description copied from interface:ICodeHolder
Returns the code.- Specified by:
getCode
in interfaceICodeHolder
-
compareTo
public final int compareTo(T o)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
extractCodes
public static final java.util.List<java.lang.String> extractCodes(java.util.Collection<? extends ICodeHolder> codeProviders)
-
extractCodes
public static final java.util.List<java.lang.String> extractCodes(ICodeHolder[] codeProviders)
-
extractCodesToArray
public static final java.lang.String[] extractCodesToArray(java.util.Collection<? extends ICodeHolder> codeProviders)
-
-