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.intcompareTo(BindingType other) Compares_typeagainst_typeof the specified object.booleanReturns if the specified object and this are one and the same instance.inthashCode()Returns the hash code of this object.static Iterator<BindingType> iterator()protected ObjectCalled 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_typeagainst_typeof the specified object. So this method is inconsistent withequals(java.lang.Object).- Specified by:
compareToin 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.
-