Documentation of 'org.hecl.ObjectThing' Java class
ObjectThing
org.hecl

Class ObjectThing

  • All Implemented Interfaces:
    RealThing


    public class ObjectThing
    extends java.lang.Object
    implements RealThing
    The ObjectThing class provides a wrapper for objects that are not directly representable as strings. FIXME - I am uncertain if this will actually work or not.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ObjectThing()
      Creates a new ObjectThing instance equal to 0.
      ObjectThing(java.lang.Object o)
      Creates a new ObjectThing instance with value i.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      static Thing create(java.lang.Object o)
      The create method creates and returns a newly allocated Thing with an ObjectThing internal representation.
      RealThing deepcopy()
      deepcopy makes a copy.
      java.lang.Object get()
      Retrieve the object associated with this instance.
      static java.lang.Object get(Thing thing)
      get attempts to fetch an Object from the Thing.
      java.lang.String getStringRep()
      getStringRep creates a string representation of the ObjectThing.
      java.lang.String thingclass() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ObjectThing

        public ObjectThing()
        Creates a new ObjectThing instance equal to 0.
      • ObjectThing

        public ObjectThing(java.lang.Object o)
        Creates a new ObjectThing instance with value i.
        Parameters:
        o - an Object.
    • Method Detail

      • thingclass

        public java.lang.String thingclass()
        Specified by:
        thingclass in interface RealThing
      • get

        public java.lang.Object get()
        Retrieve the object associated with this instance.
      • create

        public static Thing create(java.lang.Object o)
        The create method creates and returns a newly allocated Thing with an ObjectThing internal representation.
        Parameters:
        o - an Object
        Returns:
        a Thing value
      • get

        public static java.lang.Object get(Thing thing)
                                    throws HeclException
        get attempts to fetch an Object from the Thing.
        Parameters:
        thing - a Thing value
        Returns:
        an Object value
        Throws:
        HeclException - if an error occurs
      • deepcopy

        public RealThing deepcopy()
        deepcopy makes a copy.
        Specified by:
        deepcopy in interface RealThing
        Returns:
        a RealThing value
      • getStringRep

        public java.lang.String getStringRep()
        getStringRep creates a string representation of the ObjectThing.
        Specified by:
        getStringRep in interface RealThing
        Returns:
        a String value

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.