Package org.tweetyproject.arg.adf.util
Class MinusSetView<E>
java.lang.Object
java.util.AbstractCollection<E>
org.tweetyproject.arg.adf.util.AbstractUnmodifiableCollection<E>
org.tweetyproject.arg.adf.util.MinusSetView<E>
- All Implemented Interfaces:
 Iterable<E>,Collection<E>,Set<E>
- Author:
 - Mathias Hofer
 
- 
Constructor Summary
ConstructorsConstructorDescriptionMinusSetView(Set<E> superset, Set<E> subset)Constructs a view of the result of superset - subset. - 
Method Summary
Methods inherited from class org.tweetyproject.arg.adf.util.AbstractUnmodifiableCollection
add, addAll, clear, remove, removeAll, removeIf, retainAllMethods inherited from class java.util.AbstractCollection
toArray, toArray, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray 
- 
Constructor Details
- 
MinusSetView
Constructs a view of the result of superset - subset.As the name suggests, it is expected that all elements of
subsetare contained insuperset, otherwise one has to expect unreasonable results.It is up to the caller to ensure this property, this class performs no additional checks.
- Parameters:
 superset- the minuendsubset- the subtrahend
 
 - 
 - 
Method Details
- 
of
 - 
size
public int size()- Specified by:
 sizein interfaceCollection<E>- Specified by:
 sizein interfaceSet<E>- Specified by:
 sizein classAbstractCollection<E>
 - 
isEmpty
public boolean isEmpty()- Specified by:
 isEmptyin interfaceCollection<E>- Specified by:
 isEmptyin interfaceSet<E>- Overrides:
 isEmptyin classAbstractCollection<E>
 - 
contains
- Specified by:
 containsin interfaceCollection<E>- Specified by:
 containsin interfaceSet<E>- Overrides:
 containsin classAbstractCollection<E>
 - 
iterator
 - 
containsAll
- Specified by:
 containsAllin interfaceCollection<E>- Specified by:
 containsAllin interfaceSet<E>- Overrides:
 containsAllin classAbstractCollection<E>
 
 -