Package coneforest.psylla.core
Interface PsyBounded
-
- All Superinterfaces:
PsyConvertableToName,PsyConvertableToString,PsyLengthy,PsyObject
- All Known Subinterfaces:
PsyFormalQueue<T>
- All Known Implementing Classes:
PsyBlockingQueue
public interface PsyBounded extends PsyLengthy
A representation of Ψ-bounded, a type of a container with bounded capacity.
-
-
Field Summary
-
Fields inherited from interface coneforest.psylla.core.PsyLengthy
OPERATORS
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description intcapacity()Returns the capacity of this container.default booleanisFull()Returns a boolean indicating whether this container is full.default PsyIntegerpsyCapacity()Returns the Ψ-integercapacity of this container.default PsyBooleanpsyIsFull()Returns a Ψ-booleanindicating whether this container is full.-
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
-
-
-
-
Method Detail
-
capacity
int capacity()
Returns the capacity of this container.- Returns:
- the capacity of this container.
-
psyCapacity
default PsyInteger psyCapacity()
Returns the Ψ-integercapacity of this container.- Returns:
- the Ψ-
integercapacity of this container.
-
isFull
default boolean isFull()
Returns a boolean indicating whether this container is full.- Returns:
trueif this container is full, andfalseotherwise.
-
psyIsFull
default PsyBoolean psyIsFull()
Returns a Ψ-booleanindicating whether this container is full.- Returns:
- the Ψ-
booleantrueif this container is full, and the Ψ-booleanfalseotherwise.
-
-