public class UnionGraph extends AbstractGraph
| Modifier and Type | Field and Description | 
|---|---|
| protected Graph[] | baseTripleCollections | 
| Constructor and Description | 
|---|
| UnionGraph(Graph... baseTripleCollections)Constructs a UnionGraph over the specified baseTripleCollections. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | add(Triple e) | 
| boolean | equals(Object obj)Returns true if  otherdescribes the same graph and will
 always describe the same graph as this instance, false otherwise. | 
| ReadWriteLock | getLock()The lock provided by this methods allows to create read- and write-locks
 that span multiple method calls. | 
| int | hashCode() | 
| Iterator<Triple> | performFilter(BlankNodeOrIRI subject,
             IRI predicate,
             RDFTerm object) | 
| int | performSize() | 
| boolean | remove(Object e) | 
addAll, clear, contains, containsAll, filter, getImmutableGraph, isEmpty, iterator, performAdd, performAddAll, performClear, performContains, performContainsAll, performGetImmutableGraph, performIsEmpty, performIterator, performRemove, performRemoveAll, performRetainAll, performToArray, performToArray, removeAll, retainAll, size, toArray, toArraytoStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitparallelStream, removeIf, spliterator, streamprotected Graph[] baseTripleCollections
public UnionGraph(Graph... baseTripleCollections)
baseTripleCollections - the baseTripleCollectionspublic int performSize()
performSize in class AbstractGraphpublic Iterator<Triple> performFilter(BlankNodeOrIRI subject, IRI predicate, RDFTerm object)
performFilter in class AbstractGraphpublic boolean add(Triple e)
add in interface Collection<Triple>add in class AbstractGraphpublic boolean remove(Object e)
remove in interface Collection<Triple>remove in class AbstractGraphpublic boolean equals(Object obj)
Graphother describes the same graph and will
 always describe the same graph as this instance, false otherwise.
 It returns true if this == other or if it
 is otherwise guaranteed that changes to one of the instances are
 immediately reflected in the other or if both graphs are immutable.equals in interface Collection<Triple>equals in interface Graphequals in class AbstractGraphpublic int hashCode()
hashCode in interface Collection<Triple>hashCode in class Objectpublic ReadWriteLock getLock()
Graphjava.util.concurrent.locks.ReentrantReadWriteLock.
 Immutable instances (such as instances of ImmutableGraph)
 or instances used in transaction where concurrent acces of the same
 instance is not an issue may return a no-op ReadWriteLock (i.e. one
 which returned ReadLock and WriteLock instances of which the methods do
 not do anything)getLock in interface GraphgetLock in class AbstractGraphCopyright © 2015–2022 The Apache Software Foundation. All rights reserved.