Interface PsyAppendable<T extends PsyObject>

Type Parameters:
T - a type of objects being appended.
All Superinterfaces:
PsyConvertableToName, PsyConvertableToString, PsyObject
All Known Subinterfaces:
PsyFormalArray<T>, PsyFormalSet<T>
All Known Implementing Classes:
PsyArray, PsyBitArray, PsyBitSet, PsyProc, PsySet, PsyString

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).
  • Field Details

  • Method Details

    • psyAppend

      void psyAppend(T o) throws PsyErrorException
      Appends a given object to this container.
      Parameters:
      o - an object to append.
      Throws:
      PsyErrorException - when an error occurs.
    • psyAppendAll

      default void psyAppendAll(PsyIterable<? extends T> oEnumeration) throws PsyErrorException
      Appends all the objects 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 - an iterable enumeration.
      Throws:
      PsyErrorException - when an error occurs.
    • psyReplicate

      PsyAppendable psyReplicate(PsyInteger oCount) throws PsyErrorException
      Throws:
      PsyErrorException