Package coneforest.psylla.core
Interface PsyLengthy
- All Superinterfaces:
PsyConvertableToName
,PsyConvertableToString
,PsyObject
- All Known Subinterfaces:
PsyBounded
,PsyContainer<T>
,PsyFormalArray<T>
,PsyFormalDict<V>
,PsyFormalQueue<T>
,PsyFormalSet<T>
,PsyTextual
- All Known Implementing Classes:
PsyArray
,PsyBitArray
,PsyBitSet
,PsyBlockingQueue
,PsyCommand
,PsyConfigDict
,PsyDict
,PsyErrorDict
,PsyModule
,PsyName
,PsyNamespace
,PsyProc
,PsyRomanNumerals
,PsySet
,PsyString
,PsySystemDict
A representation of
lengthy
, a type of an object that has length in
some sense. Usually the length is the number of elements in the container.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
isEmpty()
Returns a boolean indicating if this container is empty (has zero length).int
length()
Returns a length of this object.default PsyBoolean
Returns aboolean
indicating if this container is empty (has zero length).default PsyInteger
Returns aninteger
representing the length of this object.Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, toSyntaxString, typeName
-
Field Details
-
OPERATORS
-
-
Method Details
-
length
int length()Returns a length of this object.- Returns:
- a length.
-
isEmpty
default boolean isEmpty()Returns a boolean indicating if this container is empty (has zero length).- Returns:
true
, if this container is empty, andfalse
otherwise.
-
psyLength
Returns aninteger
representing the length of this object.- Returns:
- an
integer
length.
-
psyIsEmpty
Returns aboolean
indicating if this container is empty (has zero length).- Returns:
- a
boolean
result.
-