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  ConcurrentModificationExceptions,
 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, toArraytoStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithashCode, parallelStream, removeIf, spliterator, streampublic 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 AbstractGraphpublic Iterator<Triple> performFilter(BlankNodeOrIRI subject, IRI predicate, RDFTerm object)
performFilter in class AbstractGraphpublic boolean performAdd(Triple e)
performAdd in class AbstractGraphpublic void setCheckConcurrency(boolean bool)
ConcurrentModificationExceptions,
 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()
Graphthis is an instance of ImmutableGraph this can
 safely return this.getImmutableGraph in interface GraphgetImmutableGraph in class AbstractGraphCopyright © 2015–2022 The Apache Software Foundation. All rights reserved.