Class BindingType

java.lang.Object
org.castor.mapping.BindingType
All Implemented Interfaces:
Serializable, Cloneable, Comparable

public final class BindingType extends Object implements Cloneable, Comparable, Serializable
Version:
$Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Author:
Ralf Joachim
See Also:
  • Field Details

  • Method Details

    • valueOf

      public static BindingType valueOf(String kind)
    • iterator

      public static Iterator iterator()
    • toString

      public String toString()
      Returns the String representation of this kind.
      Overrides:
      toString in class Object
      Returns:
      String representation of this kind.
    • clone

      public Object clone()
      Clone only returns the one and only instance of this kind.
      Overrides:
      clone in class Object
      Returns:
      The original instance.
    • equals

      public boolean equals(Object other)
      Returns if the specified object and this are one and the same instance.
      Overrides:
      equals in class Object
      Parameters:
      other - Object to be compared with this instance.
      Returns:
      true if other equals this else false.
    • hashCode

      public int hashCode()
      Returns the hash code of this object.
      Overrides:
      hashCode in class Object
      Returns:
      Hash code of this object.
    • compareTo

      public int compareTo(Object other)
      Compares _type against _type of the specified object. So this method is inconsistent with equals(java.lang.Object).
      Specified by:
      compareTo in interface Comparable
      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

      protected 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.