Package coneforest.psylla.core
Interface PsyAppendable<T extends PsyObject>
-
- Type Parameters:
T- a type ofobjects being appended.
- All Superinterfaces:
PsyConvertableToName,PsyConvertableToString,PsyObject
- All Known Subinterfaces:
PsyFormalArray<T>,PsyFormalSet<T>
public interface PsyAppendable<T extends PsyObject> extends PsyObject
A representation ofappendable, a type of container that allow to append objects (usually to the end, if it makes sense).
-
-
Field Summary
Fields Modifier and Type Field Description static PsyOperator[]OPERATORS
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidpsyAppend(T o)Appends a givenobjectto this container.default voidpsyAppendAll(PsyIterable<? extends T> oEnumeration)Appends all theobjects from a giveniterableenumeration to this container.PsyAppendablepsyReplicate(PsyInteger oCount)-
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, toSyntaxString, typeName
-
-
-
-
Field Detail
-
OPERATORS
static final PsyOperator[] OPERATORS
-
-
Method Detail
-
psyAppend
void psyAppend(T o) throws PsyErrorException
Appends a givenobjectto this container.- Parameters:
o- anobjectto append.- Throws:
PsyErrorException- when an error occurs.
-
psyAppendAll
default void psyAppendAll(PsyIterable<? extends T> oEnumeration) throws PsyErrorException
Appends all theobjects from a giveniterableenumeration 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- aniterableenumeration.- Throws:
PsyErrorException- when an error occurs.
-
psyReplicate
PsyAppendable psyReplicate(PsyInteger oCount) throws PsyErrorException
- Throws:
PsyErrorException
-
-