Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.virtuosotechnologies.lib.base
Class BasicEnumeratedType  view BasicEnumeratedType download BasicEnumeratedType.java

java.lang.Object
  extended bycom.virtuosotechnologies.lib.base.UniqueObject
      extended bycom.virtuosotechnologies.lib.base.BasicEnumeratedType
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
UniqueHierarchicalType

public class BasicEnumeratedType
extends UniqueObject
implements java.lang.Comparable

A UniqueObject that implements Comparable so it is useful as a base class for enumerated types.


Field Summary
 
Fields inherited from class com.virtuosotechnologies.lib.base.UniqueObject
 
Constructor Summary
BasicEnumeratedType()
          Default constructor using a default description.
BasicEnumeratedType(java.lang.String description)
          Construct a SingletonKey with a description
 
Method Summary
 int compareTo(java.lang.Object o)
          Comparable implementation.
 
Methods inherited from class com.virtuosotechnologies.lib.base.UniqueObject
equals, getUniqueObjectID, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicEnumeratedType

public BasicEnumeratedType()
Default constructor using a default description.


BasicEnumeratedType

public BasicEnumeratedType(java.lang.String description)
Construct a SingletonKey with a description

Method Detail

compareTo

public final int compareTo(java.lang.Object o)
Comparable implementation. Uses toString() comparison. If the generated strings are equal, it falls back on the unique object ID, which is guaranteed to be unique. Final.

Specified by:
compareTo in interface java.lang.Comparable