adavid.util
Class SortableObject

java.lang.Object
  |
  +--adavid.util.SortableAdapter
        |
        +--adavid.util.SortableObject
Direct Known Subclasses:
ObjectString

public class SortableObject
extends SortableAdapter


Constructor Summary
SortableObject(java.lang.Object object)
          default constructor, uses object.toString()
SortableObject(java.lang.Object object, java.lang.String string)
          custom constructor: any string
 
Method Summary
 void setString(java.lang.String string)
          method to change the string
static SortableObject[] toSortableObjects(java.lang.Object[] objs)
          convenient method to build arrays of sortable elements
 java.lang.String toString()
          overrides SortableAdapter.toString() to return the customized string
 
Methods inherited from class adavid.util.SortableAdapter
equals, getObject, isGreaterThan, isLessThan, setObject, toSortableAdapters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SortableObject

public SortableObject(java.lang.Object object)
default constructor, uses object.toString()

SortableObject

public SortableObject(java.lang.Object object,
                      java.lang.String string)
custom constructor: any string
Method Detail

toSortableObjects

public static SortableObject[] toSortableObjects(java.lang.Object[] objs)
convenient method to build arrays of sortable elements

toString

public java.lang.String toString()
overrides SortableAdapter.toString() to return the customized string
Overrides:
toString in class SortableAdapter

setString

public void setString(java.lang.String string)
method to change the string