Module coneforest.psylla
Package coneforest.psylla.core
Interface PsyFormalQueue<T extends PsyObject>
- Type Parameters:
T- a type of contained objects.
- All Superinterfaces:
Iterable<T>,PsyBounded,PsyClearable,PsyContainer<T>,PsyIterable<T>,PsyLengthy,PsyObject,PsySequential<T>,PsyStreamable<T>
- All Known Implementing Classes:
PsyBlockingQueue
@Type("formalqueue")
public interface PsyFormalQueue<T extends PsyObject>
extends PsyBounded, PsyContainer<T>
The representation of
formalqueue, an abstraction of a queue of objects.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ContextActionContext action of thedequeueoperator.static final ContextActionContext action of theenqueueoperator.static final ContextActionContext action of thegiveoperator.static final ContextActionContext action of thetakeoperator.Fields inherited from interface coneforest.psylla.core.PsyBounded
PSY_CAPACITY, PSY_ISFULLFields inherited from interface coneforest.psylla.core.PsyClearable
PSY_CLEARFields inherited from interface coneforest.psylla.core.PsyLengthy
PSY_ISEMPTY, PSY_LENGTHFields inherited from interface coneforest.psylla.core.PsyObject
PSY_CLONE, PSY_EQ, PSY_HASHCODE, PSY_INSTANCEOF, PSY_NE, PSY_TONAME, PSY_TOSTRING, PSY_TYPEFields inherited from interface coneforest.psylla.core.PsySequential
PSY_FORALLFields inherited from interface coneforest.psylla.core.PsyStreamable
PSY_STREAM -
Method Summary
Modifier and TypeMethodDescriptionRemoves and returns the head of this queue.voidpsyEnqueue(T o) Inserts an element into this queue.voidpsyTake()Methods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface coneforest.psylla.core.PsyBounded
capacity, isFull, psyCapacity, psyIsFullMethods inherited from interface coneforest.psylla.core.PsyClearable
psyClearMethods inherited from interface coneforest.psylla.core.PsyContainer
psyNewEmpty, toSyntaxStringHelperMethods inherited from interface coneforest.psylla.core.PsyIterable
psyStream, psyToArray, psyUniteMethods inherited from interface coneforest.psylla.core.PsyLengthy
isEmpty, length, psyIsEmpty, psyLengthMethods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, toSyntaxString, typeNameMethods inherited from interface coneforest.psylla.core.PsyStreamable
psyForAll
-
Field Details
-
PSY_DEQUEUE
Context action of thedequeueoperator. -
PSY_ENQUEUE
Context action of theenqueueoperator. -
PSY_GIVE
Context action of thegiveoperator. -
PSY_TAKE
Context action of thetakeoperator.
-
-
Method Details
-
psyDequeue
Removes and returns the head of this queue.- Returns:
- a head of this queue.
- Throws:
PsyErrorException- when this queue is empty.
-
psyEnqueue
Inserts an element into this queue.- Parameters:
o- the element to enqueue.- Throws:
PsyErrorException- when the element can not be inserted without violation of the capacity restrictions.
-
psyTake
- Throws:
PsyErrorException
-
psyGive
- Throws:
PsyErrorException
-