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)
TripleBuncht.contains in interface TripleBunchpublic boolean containsBySameValueAs(Triple t)
TripleBunchcontainsBySameValueAs in interface TripleBunchpublic int size()
TripleBunchsize in interface TripleBunchpublic void add(Triple t)
TripleBuncht to the triples in this bunch. If t
is already a member, nothing happens. The bunch now .contains this
triple.add in interface TripleBunchpublic void remove(Triple t)
TripleBuncht from the triples in this bunch. If it wasn't
a member, nothing happens. The bunch no longer .contains this triple.remove in interface TripleBunchpublic ExtendedIterator<Triple> iterator(HashCommon.NotifyEmpty container)
TripleBunchemptied method of
container is invoked.iterator in interface TripleBunchpublic ExtendedIterator<Triple> iterator()
TripleBunchiterator in interface TripleBunchLicenced under the Apache License, Version 2.0