Package coneforest.psylla.core
Interface PsyBounded
-
- All Superinterfaces:
PsyConvertableToName
,PsyConvertableToString
,PsyLengthy
,PsyObject
- All Known Subinterfaces:
PsyQueuelike<T>
- All Known Implementing Classes:
PsyBlockingQueue
public interface PsyBounded extends PsyLengthy
A representation of Ψ-bounded
, a type of a container with bounded capacity.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description int
capacity()
Returns the capacity of this container.default boolean
isFull()
Returns a boolean indicating whether this container is full.default PsyInteger
psyCapacity()
Returns the Ψ-integer
capacity of this container.default PsyBoolean
psyIsFull()
Returns a Ψ-boolean
indicating 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 Ψ-integer
capacity of this container.- Returns:
- the Ψ-
integer
capacity of this container.
-
isFull
default boolean isFull()
Returns a boolean indicating whether this container is full.- Returns:
true
if this container is full, andfalse
otherwise.
-
psyIsFull
default PsyBoolean psyIsFull()
Returns a Ψ-boolean
indicating whether this container is full.- Returns:
- the Ψ-
boolean
true
if this container is full, and the Ψ-boolean
false
otherwise.
-
-