com.jstatcom.model
Class JSCPropertyTypes
- java.lang.Object
-
- com.jstatcom.model.JSCPropertyTypes
-
- Direct Known Subclasses:
- CSignTypes
public abstract class JSCPropertyTypes extends java.lang.ObjectThis class contains an enumeration of constants that define properties that can be set for aJSCDataobject. This can be used by clients to define specific settings to be stored in a data object. The properties are not serialized withJSCDataobjects.It implements the typesave enum pattern (Joshua Bloch, "Effective Java", Item 21). If you compare
JSCPropertyTypes, always use the==operator.
-
-
Constructor Summary
Constructors Constructor and Description JSCPropertyTypes(java.lang.String name)Creates a new property type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object o)Override prevention method to enforcea.equals(b)if and onlyif a==b.inthashCode()Override prevention method invokes super method.java.lang.Stringname()Gets the name of this type.java.lang.StringtoString()Gets a string representation.
-
-
-
Constructor Detail
-
JSCPropertyTypes
public JSCPropertyTypes(java.lang.String name)
Creates a new property type.- Parameters:
name- the identifier of the new property- Throws:
java.lang.IllegalArgumentException-if (name == null)
-
-
Method Detail
-
equals
public final boolean equals(java.lang.Object o)
Override prevention method to enforcea.equals(b)if and onlyif a==b.- Overrides:
equalsin classjava.lang.Object- Parameters:
o- object to compare with- Returns:
trueif equal,falseotherwise
-
hashCode
public final int hashCode()
Override prevention method invokes super method.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hash code
-
name
public final java.lang.String name()
Gets the name of this type.- Returns:
- the name of this type
-
toString
public final java.lang.String toString()
Gets a string representation.- Overrides:
toStringin classjava.lang.Object- Returns:
- a string representation of
this
-
-
DMelt 3.0 © DataMelt by jWork.ORG