Package coneforest.psylla.core
Interface PsyAppendable<T extends PsyObject>
-
- Type Parameters:
T
- a type of Ψ-object
s being appended.
- All Superinterfaces:
PsyConvertableToName
,PsyConvertableToString
,PsyObject
- All Known Subinterfaces:
PsyArraylike<T>
,PsySetlike<T>
public interface PsyAppendable<T extends PsyObject> extends PsyObject
A representation of Ψ-appendable
, a type of container that allow to append Ψ objects (usually to the end, if it makes sense).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
psyAppend(T o)
Appends a given Ψ-object
to this container.default void
psyAppendAll(PsyIterable<? extends T> oEnumeration)
Appends all the Ψ-object
s from a given Ψ-iterable
enumeration to this container.PsyAppendable
psyReplicate(PsyInteger oCount)
-
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, toSyntaxString, typeName
-
-
-
-
Method Detail
-
psyAppend
void psyAppend(T o) throws PsyException
Appends a given Ψ-object
to this container.- Parameters:
o
- a given Ψ-object
to append.- Throws:
PsyException
- when an error occurs.
-
psyAppendAll
default void psyAppendAll(PsyIterable<? extends T> oEnumeration) throws PsyException
Appends all the Ψ-object
s from a given Ψ-iterable
enumeration to this container. When a given enumeration is the same as this container, first clone the enumeration, and then appends all the elements from the clone to avoid concurrent modification.- Parameters:
oEnumeration
- a Ψ-iterable
enumeration.- Throws:
PsyException
- when an error occurs.
-
psyReplicate
PsyAppendable psyReplicate(PsyInteger oCount) throws PsyException
- Throws:
PsyException
-
-