public class SimpleGraph extends AbstractGraph
Constructor and Description |
---|
SimpleGraph()
Creates an empty SimpleGraph
|
SimpleGraph(Collection<Triple> baseCollection)
Creates a SimpleGraph for the specified collection of triples,
subsequent modification of baseSet do not affect the created instance.
|
SimpleGraph(Iterator<Triple> iterator)
Creates a SimpleGraph using the passed iterator, the iterator
is consumed before the constructor returns
|
SimpleGraph(Set<Triple> baseSet)
Creates a SimpleGraph for the specified set of triples,
subsequent modification of baseSet do affect the created instance.
|
Modifier and Type | Method and Description |
---|---|
ImmutableGraph |
getImmutableGraph()
Returns an ImutableGraph describing the graph at the current point in
time.
|
boolean |
performAdd(Triple e) |
Iterator<Triple> |
performFilter(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object) |
int |
performSize() |
void |
setCheckConcurrency(boolean bool)
Specifies whether or not to throw
ConcurrentModificationException s,
if this simple triple collection is modified concurrently. |
add, addAll, clear, contains, containsAll, equals, filter, getLock, isEmpty, iterator, performAddAll, performClear, performContains, performContainsAll, performGetImmutableGraph, performIsEmpty, performIterator, performRemove, performRemoveAll, performRetainAll, performToArray, performToArray, remove, removeAll, retainAll, size, toArray, toArray
toString
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
hashCode, parallelStream, removeIf, spliterator, stream
public SimpleGraph()
public SimpleGraph(Iterator<Triple> iterator)
iterator
- public SimpleGraph(Set<Triple> baseSet)
baseSet
- public SimpleGraph(Collection<Triple> baseCollection)
baseSet
- public int performSize()
performSize
in class AbstractGraph
public Iterator<Triple> performFilter(BlankNodeOrIRI subject, IRI predicate, RDFTerm object)
performFilter
in class AbstractGraph
public boolean performAdd(Triple e)
performAdd
in class AbstractGraph
public void setCheckConcurrency(boolean bool)
ConcurrentModificationException
s,
if this simple triple collection is modified concurrently. Concurrency
check is set to false by default.bool
- Specifies whether or not to check concurrent modifications.public ImmutableGraph getImmutableGraph()
Graph
this
is an instance of ImmutableGraph this can
safely return this
.getImmutableGraph
in interface Graph
getImmutableGraph
in class AbstractGraph
Copyright © 2015–2022 The Apache Software Foundation. All rights reserved.