gnu.iou
Class queue.Enqueued
java.lang.Object
|
+--gnu.iou.queue.Enqueued
- All Implemented Interfaces:
- java.lang.Cloneable
- Enclosing class:
- queue
- public static class queue.Enqueued
- extends java.lang.Object
- implements java.lang.Cloneable
List node can be subclassed, eg, for a soft queue. Such a
`queue' subclass needs to set the queue type in its
constructors using the equivalent of
q_t = new Enqueued().getClass();
The `Enqueued' methods `get', `reinit', `cloneEnqueued',
`copy' and `contains' need to be defined in an `Enqueued'
subclass that employs an object intermediary like a
SoftReference. Refer to the java sourcecode for this class for
more information.
- Author:
- John Pritchard
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
o
protected java.lang.Object o
n
protected queue.Enqueued n
queue.Enqueued
public queue.Enqueued()
get
public java.lang.Object get()
free
public void free()
clear
public void clear()
contains
public boolean contains(java.lang.Object obj)
reinit
public void reinit(java.lang.Object obj)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
cloneEnqueued
public queue.Enqueued cloneEnqueued()
copy
public queue.Enqueued copy()
- Clone, dropping without remainer of list