|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.grogra.xl.impl.queues.QueueDescriptor<Q>
public abstract class QueueDescriptor<Q extends Queue>
A QueueDescriptor
is a handle to the method
QueueCollection.getQueue(QueueDescriptor)
,
there it is used to instantiate a queue by
createQueue(QueueCollection)
. In addition, a
QueueDescriptor
describes the order processing of
queues (see QueueCollection.process(int[])
) by its
methods queuesToProcessBefore()
and queuesToProcessAfter()
.
The methods equals
and hashCode
are overriden
such that two descriptors are equal iff their classes are equal.
Field Summary | |
---|---|
static QueueDescriptor[] |
DESCRIPTOR_0
Immutable QueueDescriptor array of length 0. |
Constructor Summary | |
---|---|
QueueDescriptor()
|
Method Summary | |
---|---|
static void |
addOrder(java.util.List<? super QueueDescriptor<?>> queueOrder)
|
abstract Q |
createQueue(QueueCollection qc)
Creates a new Queue . |
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
protected abstract QueueDescriptor[] |
queuesToProcessAfter()
Returns the descriptors of queues which are to be applied after the queue of this descriptor. |
protected abstract QueueDescriptor[] |
queuesToProcessBefore()
Returns the descriptors of queues which are to be applied before the queue of this descriptor. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final QueueDescriptor[] DESCRIPTOR_0
QueueDescriptor
array of length 0.
Constructor Detail |
---|
public QueueDescriptor()
Method Detail |
---|
public static void addOrder(java.util.List<? super QueueDescriptor<?>> queueOrder)
public abstract Q createQueue(QueueCollection qc)
Queue
. This method is invoked by
QueueCollection.getQueue(QueueDescriptor)
.
qc
- the invoking QueueCollection
Queue
instance corresponding to this descriptorpublic final boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object
protected abstract QueueDescriptor[] queuesToProcessAfter()
QueueCollection.process(int[])
protected abstract QueueDescriptor[] queuesToProcessBefore()
QueueCollection.process(int[])
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |