C
- element type. See the discussion in
Bloch on Cloning.public interface Element<C extends Element<C>> extends java.lang.Comparable<C>, java.io.Serializable
Cloneable
removed in
2012-08-18, clone()
is renamed to copy()
.Modifier and Type | Method and Description |
---|---|
int |
compareTo(C b)
Compare this to b.
|
C |
copy()
Clone this Element.
|
boolean |
equals(java.lang.Object b)
Test if this is equal to b.
|
ElemFactory<C> |
factory()
Get the corresponding element factory.
|
int |
hashCode()
Hashcode of this Element.
|
java.lang.String |
toScript()
Get a scripting compatible string representation.
|
java.lang.String |
toScriptFactory()
Get a scripting compatible string representation of the factory.
|
boolean equals(java.lang.Object b)
equals
in class java.lang.Object
b
- int hashCode()
hashCode
in class java.lang.Object
int compareTo(C b)
ElemFactory<C> factory()
java.lang.String toScript()
java.lang.String toScriptFactory()