Class ByteObjectDescription

java.lang.Object
org.jfree.xml.factory.objects.AbstractObjectDescription
org.jfree.xml.factory.objects.ByteObjectDescription
All Implemented Interfaces:
Serializable, Cloneable, ObjectDescription

public class ByteObjectDescription extends AbstractObjectDescription
An object-description for a Byte object.
See Also:
  • Constructor Details

    • ByteObjectDescription

      public ByteObjectDescription()
      Creates a new object description.
  • Method Details

    • createObject

      public Object createObject()
      Creates a new object (Byte) based on this description object.
      Returns:
      The Byte object.
    • setParameterFromObject

      public void setParameterFromObject(Object o) throws ObjectFactoryException
      Sets the parameters of this description object to match the supplied object.
      Parameters:
      o - the object (should be an instance of Byte.
      Throws:
      ObjectFactoryException - if there is a problem while reading the properties of the given object.
    • equals

      public boolean equals(Object o)
      Tests for equality.
      Specified by:
      equals in interface ObjectDescription
      Overrides:
      equals in class AbstractObjectDescription
      Parameters:
      o - the object to test.
      Returns:
      A boolean.
    • hashCode

      public int hashCode()
      Returns a hash code for the object.
      Specified by:
      hashCode in interface ObjectDescription
      Overrides:
      hashCode in class AbstractObjectDescription
      Returns:
      The hash code.