Package org.aksw.sparqlify.database
Class NestedSet<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<T>
org.aksw.sparqlify.database.NestedSet<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Iterable<T>,Collection<T>,Set<T>
IMPORTANT: If you are working with a child set, then do not modify the parent,
or things might go out of sync.
So the parent must remain unchanged while working with a child set
- Author:
- Claus Stadler <cstadler@informatik.uni-leipzig.de>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleancontainsDirect(Object item) Whether the given item is present in *this* instance, rather than being actually a member of one of the parentsbooleanintinthashCode()booleanisView()iterator()protected voidprotected voidbooleanState a clause as removed - equivalent to stating the clause as unsatisfiableintsize()Methods inherited from class java.util.AbstractSet
removeAllMethods inherited from class java.util.AbstractCollection
addAll, clear, containsAll, isEmpty, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Set
addAll, clear, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
-
Constructor Details
-
NestedSet
-
-
Method Details
-
isView
public boolean isView() -
add
- Specified by:
addin interfaceCollection<T>- Specified by:
addin interfaceSet<T>- Overrides:
addin classAbstractCollection<T>
-
remove
State a clause as removed - equivalent to stating the clause as unsatisfiable- Specified by:
removein interfaceCollection<T>- Specified by:
removein interfaceSet<T>- Overrides:
removein classAbstractCollection<T>- Parameters:
clause-
-
onAdd
-
onRemove
-
getNestingDepth
public int getNestingDepth() -
contains
- Specified by:
containsin interfaceCollection<T>- Specified by:
containsin interfaceSet<T>- Overrides:
containsin classAbstractCollection<T>
-
containsDirect
Whether the given item is present in *this* instance, rather than being actually a member of one of the parents- Parameters:
item-- Returns:
-
iterator
-
size
public int size()- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceSet<T>- Specified by:
sizein classAbstractCollection<T>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<T>- Specified by:
hashCodein interfaceSet<T>- Overrides:
hashCodein classAbstractSet<T>
-
equals
- Specified by:
equalsin interfaceCollection<T>- Specified by:
equalsin interfaceSet<T>- Overrides:
equalsin classAbstractSet<T>
-