Package io.ciera.runtime.summit.types
Class Set<E>
- java.lang.Object
-
- io.ciera.runtime.summit.types.Set<E>
-
- All Implemented Interfaces:
ISet<E>,IXtumlType,Iterable<E>,Collection<E>,Set<E>
- Direct Known Subclasses:
EventSet,InstanceSet,RelationshipSet,TimerSet
public abstract class Set<E> extends Object implements ISet<E>
-
-
Constructor Summary
Constructors Constructor Description Set()Set(Collection<E> c)Set(Comparator<? super E> comp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(E e)booleanaddAll(Collection<? extends E> c)Eany()EanyWhere(IWhere<E> condition)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> c)ISet<E>difference(E element)ISet<E>difference(ISet<E> set)ISet<E>disunion(E element)ISet<E>disunion(ISet<E> set)booleanequality(IXtumlType value)ISet<E>intersection(E element)ISet<E>intersection(ISet<E> set)booleanisEmpty()Iterator<E>iterator()booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)intsize()ISet<E>sorted(Comparator<E> comp)ISet<E>sorted(Comparator<E> comp, boolean ascending)Object[]toArray()<T> T[]toArray(T[] a)ISet<E>union(E element)ISet<E>union(ISet<E> set)ISet<E>where(IWhere<E> condition)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface io.ciera.runtime.summit.types.ISet
elements, emptySet, emptySet, nullElement
-
Methods inherited from interface io.ciera.runtime.summit.types.IXtumlType
inequality, oneWhere, serialize
-
Methods inherited from interface java.util.Set
equals, hashCode, spliterator
-
-
-
-
Constructor Detail
-
Set
public Set()
-
Set
public Set(Comparator<? super E> comp)
-
Set
public Set(Collection<E> c)
-
-
Method Detail
-
intersection
public ISet<E> intersection(ISet<E> set)
- Specified by:
intersectionin interfaceISet<E>
-
intersection
public ISet<E> intersection(E element)
- Specified by:
intersectionin interfaceISet<E>
-
where
public ISet<E> where(IWhere<E> condition) throws XtumlException
- Specified by:
wherein interfaceISet<E>- Throws:
XtumlException
-
anyWhere
public E anyWhere(IWhere<E> condition) throws XtumlException
- Specified by:
anyWherein interfaceISet<E>- Throws:
XtumlException
-
sorted
public ISet<E> sorted(Comparator<E> comp) throws XtumlException
- Specified by:
sortedin interfaceISet<E>- Throws:
XtumlException
-
sorted
public ISet<E> sorted(Comparator<E> comp, boolean ascending) throws XtumlException
- Specified by:
sortedin interfaceISet<E>- Throws:
XtumlException
-
add
public boolean add(E e)
-
remove
public boolean remove(Object o)
-
addAll
public boolean addAll(Collection<? extends E> c)
-
retainAll
public boolean retainAll(Collection<?> c)
-
removeAll
public boolean removeAll(Collection<?> c)
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(Object o)
-
toArray
public Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a)
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceSet<E>
-
clear
public void clear()
-
equality
public boolean equality(IXtumlType value) throws XtumlException
- Specified by:
equalityin interfaceIXtumlType- Throws:
XtumlException
-
-