public class SetBunch extends Object implements TripleBunch
Constructor and Description |
---|
SetBunch(TripleBunch b) |
Modifier and Type | Method and Description |
---|---|
void |
add(Triple t)
Add
t to the triples in this bunch. |
boolean |
contains(Triple t)
Answer true iff this TripleBunch contains a triple .equals to
t . |
boolean |
containsBySameValueAs(Triple t)
Answer true iff this TripleBunch contains a triple with .sameValueAs
subject, predicate, and object.
|
ExtendedIterator<Triple> |
iterator()
Answer an iterator over all the triples in this bunch.
|
ExtendedIterator<Triple> |
iterator(HashCommon.NotifyEmpty container)
Answer an iterator over all the triples in this bunch.
|
void |
remove(Triple t)
Remove
t from the triples in this bunch. |
int |
size()
Answer the number of triples in this bunch.
|
public SetBunch(TripleBunch b)
public boolean contains(Triple t)
TripleBunch
t
.contains
in interface TripleBunch
public boolean containsBySameValueAs(Triple t)
TripleBunch
containsBySameValueAs
in interface TripleBunch
public int size()
TripleBunch
size
in interface TripleBunch
public void add(Triple t)
TripleBunch
t
to the triples in this bunch. If t
is already a member, nothing happens. The bunch now .contains this
triple.add
in interface TripleBunch
public void remove(Triple t)
TripleBunch
t
from the triples in this bunch. If it wasn't
a member, nothing happens. The bunch no longer .contains this triple.remove
in interface TripleBunch
public ExtendedIterator<Triple> iterator(HashCommon.NotifyEmpty container)
TripleBunch
emptied
method of
container
is invoked.iterator
in interface TripleBunch
public ExtendedIterator<Triple> iterator()
TripleBunch
iterator
in interface TripleBunch
Licenced under the Apache License, Version 2.0