public class SimpleGraph extends AbstractGraph
Constructor and Description |
---|
SimpleGraph(Iterator<Triple> tripleIter) |
SimpleGraph(TripleCollection tripleCollection)
Creates a graph with the triples in tripleCollection
|
SimpleGraph(TripleCollection tripleCollection,
boolean tripleCollectionWillNeverChange)
Creates a graph with the triples in tripleCollection.
|
Modifier and Type | Method and Description |
---|---|
Iterator<Triple> |
performFilter(NonLiteral subject,
UriRef predicate,
Resource object)
A subclass of
AbstractTripleCollection should override
this method instead of filter for graph event support to be
added. |
int |
size() |
add, addAll, clear, equals, hashCode, remove, removeAll
addGraphListener, addGraphListener, contains, dispatchEvent, filter, iterator, performAdd, performRemove, removeGraphListener
containsAll, isEmpty, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addGraphListener, addGraphListener, filter, removeGraphListener
contains, containsAll, isEmpty, iterator, retainAll, toArray, toArray
public SimpleGraph(TripleCollection tripleCollection)
tripleCollection
- the collection of triples this Graph shall consist ofpublic SimpleGraph(TripleCollection tripleCollection, boolean tripleCollectionWillNeverChange)
tripleCollection
- the collection of triples this Graph shall consist oftripleCollectionWillNeverChange
- true if the caller promises tripleCollection will never changepublic int size()
size
in interface Collection<Triple>
size
in class AbstractCollection<Triple>
public Iterator<Triple> performFilter(NonLiteral subject, UriRef predicate, Resource object)
AbstractTripleCollection
AbstractTripleCollection
should override
this method instead of filter
for graph event support to be
added. The Iterator returned by filter
will dispatch a
GraphEvent after invoking the remove method of the iterator returned by
this method.performFilter
in class AbstractTripleCollection
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.