Package org.castor.mapping
Class BindingType
java.lang.Object
org.castor.mapping.BindingType
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<BindingType>
public final class BindingType
extends Object
implements Cloneable, Comparable<BindingType>, Serializable
- Version:
- $Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
- Author:
- Ralf Joachim
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clone only returns the one and only instance of this kind.int
compareTo
(BindingType other) Compares_type
against_type
of the specified object.boolean
Returns if the specified object and this are one and the same instance.int
hashCode()
Returns the hash code of this object.static Iterator
<BindingType> iterator()
protected Object
Called during deserialization.toString()
Returns the String representation of this kind.static BindingType
-
Field Details
-
JDO
-
XML
-
-
Method Details
-
valueOf
-
iterator
-
toString
-
clone
-
equals
-
hashCode
-
compareTo
Compares_type
against_type
of the specified object. So this method is inconsistent withequals(java.lang.Object)
.- Specified by:
compareTo
in interfaceComparable<BindingType>
- Parameters:
other
- Object to be compared with this instance.- Returns:
- A negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
-
readResolve
Called during deserialization.- Returns:
- The existing instance of the enum.
So you can use '==' like 'equals' even if you use a deserialized Enum.
-