public class SimpleMGraph extends AbstractTripleCollection implements MGraph
Constructor and Description |
---|
SimpleMGraph()
Creates an empty SimpleMGraph
|
SimpleMGraph(Collection<Triple> baseCollection) |
SimpleMGraph(Iterator<Triple> iterator) |
SimpleMGraph(Set<Triple> baseSet) |
Modifier and Type | Method and Description |
---|---|
Graph |
getGraph()
Returns the graph
|
boolean |
performAdd(Triple e)
A subclass of
AbstractTripleCollection should override
this method instead of add for graph event support to be
added. |
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. |
void |
setCheckConcurrency(boolean bool)
Specifies whether or not to throw
ConcurrentModificationException s,
if this simple triple collection is modified concurrently. |
int |
size() |
add, addGraphListener, addGraphListener, contains, dispatchEvent, filter, iterator, performRemove, remove, removeAll, removeGraphListener
addAll, clear, containsAll, isEmpty, retainAll, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addGraphListener, addGraphListener, filter, removeGraphListener
public SimpleMGraph()
public SimpleMGraph(Collection<Triple> baseCollection)
public 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
public boolean performAdd(Triple e)
AbstractTripleCollection
AbstractTripleCollection
should override
this method instead of add
for graph event support to be
added.performAdd
in class AbstractTripleCollection
e
- The triple to be added to the triple collectionpublic 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.Copyright © 2014 The Apache Software Foundation. All Rights Reserved.