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>
,PsyConvertableToName
,PsyConvertableToString
,PsyIterable<T>
,PsyLengthy
,PsyObject
,PsySequential<T>
,PsyStreamable<T>
- All Known Implementing Classes:
PsyBlockingQueue
A representation of
formalqueue
, an abstraction of a queue of
object
s.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionRemoves and returns the head of this queue.void
psyEnqueue
(T o) Inserts an element into this queue.void
psyTake()
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface coneforest.psylla.core.PsyBounded
capacity, isFull, psyCapacity, psyIsFull
Methods inherited from interface coneforest.psylla.core.PsyClearable
psyClear
Methods inherited from interface coneforest.psylla.core.PsyContainer
psyNewEmpty, toSyntaxStringHelper
Methods inherited from interface coneforest.psylla.core.PsyIterable
psyStream, psyToArray, psyUnite
Methods inherited from interface coneforest.psylla.core.PsyLengthy
isEmpty, length, psyIsEmpty, psyLength
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, toSyntaxString, typeName
Methods inherited from interface coneforest.psylla.core.PsyStreamable
psyForAll
-
Field Details
-
OPERATORS
-
-
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
-