Package coneforest.psylla.core
Class PsySet
- java.lang.Object
-
- coneforest.psylla.core.PsySet
-
- All Implemented Interfaces:
PsyAppendable<PsyObject>
,PsyClearable
,PsyContainer<PsyObject>
,PsyConvertableToName
,PsyConvertableToString
,PsyIterable<PsyObject>
,PsyLengthy
,PsyObject
,PsySetlike<PsyObject>
,PsyStreamlike<PsyObject>
,Iterable<PsyObject>
public class PsySet extends Object implements PsySetlike<PsyObject>
A representation of Ψ-set
object.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<PsyObject>
iterator()
int
length()
Returns a length of this object.void
psyAppend(PsyObject o)
Appends a given Ψ-object
to this container.void
psyClear()
Removes all the elements from this set.PsySet
psyClone()
Returns a clone of this object.PsyBoolean
psyContains(PsyObject o)
Returns a Ψ-boolean
object indicating whether a given Ψ-object
belongs to this set.void
psyRemove(PsyObject o)
Removes a Ψ-object
from this set.PsyStream
psyStream()
-
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
-
Methods inherited from interface coneforest.psylla.core.PsyIterable
psyCount, psyFilter, psyForAll, psyMap, 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.PsySetlike
psyAppendAll, psyIntersects, psyRemoveAll, psyReplicate, psyRetainAll, toSyntaxString, toSyntaxStringHelper
-
Methods inherited from interface coneforest.psylla.core.PsyStreamlike
psyConcat
-
-
-
-
Method Detail
-
psyClone
public PsySet psyClone()
Description copied from interface:PsyObject
Returns a clone of this object.
-
length
public int length()
Description copied from interface:PsyLengthy
Returns a length of this object.- Specified by:
length
in interfacePsyLengthy
- Returns:
- a length.
-
psyAppend
public void psyAppend(PsyObject o)
Description copied from interface:PsyAppendable
Appends a given Ψ-object
to this container.- Specified by:
psyAppend
in interfacePsyAppendable<PsyObject>
- Parameters:
o
- a given Ψ-object
to append.
-
psyRemove
public void psyRemove(PsyObject o)
Description copied from interface:PsySetlike
Removes a Ψ-object
from this set. If a given object is not present in this set, error does not occur.- Specified by:
psyRemove
in interfacePsySetlike<PsyObject>
- Parameters:
o
- a given Ψ-object
.
-
psyContains
public PsyBoolean psyContains(PsyObject o)
Description copied from interface:PsySetlike
Returns a Ψ-boolean
object indicating whether a given Ψ-object
belongs to this set.- Specified by:
psyContains
in interfacePsySetlike<PsyObject>
- Parameters:
o
- a given Ψ-object
.- Returns:
PsyBoolean.TRUE
, if an object belongs to this set, andPsyBoolean.FALSE
otherwise.
-
psyClear
public void psyClear()
Description copied from interface:PsySetlike
Removes all the elements from this set.- Specified by:
psyClear
in interfacePsyClearable
- Specified by:
psyClear
in interfacePsySetlike<PsyObject>
-
psyStream
public PsyStream psyStream()
- Specified by:
psyStream
in interfacePsyIterable<PsyObject>
-
-