Package coneforest.psylla.core
Class PsySet
- java.lang.Object
-
- coneforest.psylla.core.PsySet
-
- All Implemented Interfaces:
PsyAppendable<PsyObject>,PsyClearable,PsyContainer<PsyObject>,PsyConvertableToName,PsyConvertableToString,PsyFormalSet<PsyObject>,PsyIterable<PsyObject>,PsyLengthy,PsyObject,PsySequential<PsyObject>,PsyStreamable<PsyObject>,Iterable<PsyObject>
public class PsySet extends Object implements PsyFormalSet<PsyObject>
A representation of Ψ-setobject.
-
-
Field Summary
Fields Modifier and Type Field Description static PsyOperator[]OPERATORS
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<PsyObject>iterator()intlength()Returns a length of this object.voidpsyAppend(PsyObject o)Appends a given Ψ-objectto this container.voidpsyClear()Removes all the elements from this set.PsySetpsyClone()Returns a clone of this object.PsyBooleanpsyContains(PsyObject o)Returns a Ψ-booleanobject indicating whether a given Ψ-objectbelongs to this set.voidpsyRemove(PsyObject o)Removes a Ψ-objectfrom this set.PsyStreampsyStream()-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface coneforest.psylla.core.PsyContainer
psyNewEmpty, toSyntaxStringHelper
-
Methods inherited from interface coneforest.psylla.core.PsyFormalSet
psyAppendAll, psyIntersects, psyRemoveAll, psyReplicate, psyRetainAll, toSyntaxString, toSyntaxStringHelper
-
Methods inherited from interface coneforest.psylla.core.PsyIterable
psyToArray, psyUnite
-
Methods inherited from interface coneforest.psylla.core.PsyLengthy
isEmpty, psyIsEmpty, psyLength
-
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, typeName
-
Methods inherited from interface coneforest.psylla.core.PsyStreamable
psyForAll
-
-
-
-
Field Detail
-
OPERATORS
public static final PsyOperator[] OPERATORS
-
-
Method Detail
-
psyClone
public PsySet psyClone()
Description copied from interface:PsyObjectReturns a clone of this object.
-
length
public int length()
Description copied from interface:PsyLengthyReturns a length of this object.- Specified by:
lengthin interfacePsyLengthy- Returns:
- a length.
-
psyAppend
public void psyAppend(PsyObject o)
Description copied from interface:PsyAppendableAppends a given Ψ-objectto this container.- Specified by:
psyAppendin interfacePsyAppendable<PsyObject>- Parameters:
o- a given Ψ-objectto append.
-
psyRemove
public void psyRemove(PsyObject o)
Description copied from interface:PsyFormalSetRemoves a Ψ-objectfrom this set. If a given object is not present in this set, error does not occur.- Specified by:
psyRemovein interfacePsyFormalSet<PsyObject>- Parameters:
o- a given Ψ-object.
-
psyContains
public PsyBoolean psyContains(PsyObject o)
Description copied from interface:PsyFormalSetReturns a Ψ-booleanobject indicating whether a given Ψ-objectbelongs to this set.- Specified by:
psyContainsin interfacePsyFormalSet<PsyObject>- Parameters:
o- a given Ψ-object.- Returns:
PsyBoolean.TRUE, if an object belongs to this set, andPsyBoolean.FALSEotherwise.
-
psyClear
public void psyClear()
Description copied from interface:PsyFormalSetRemoves all the elements from this set.- Specified by:
psyClearin interfacePsyClearable- Specified by:
psyClearin interfacePsyFormalSet<PsyObject>
-
psyStream
public PsyStream psyStream()
- Specified by:
psyStreamin interfacePsyIterable<PsyObject>- Specified by:
psyStreamin interfacePsyStreamable<PsyObject>
-
-