public class HashedTripleBunch extends HashCommon<Triple> implements TripleBunch
HashCommon.NotifyEmptycapacity| Constructor and Description |
|---|
HashedTripleBunch(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.
|
int |
currentCapacity()
Answer the current capacity of this HashedTripleBunch; for testing purposes
only.
|
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 the object
key from this hash's keys if it
is present (if it's absent, do nothing). |
int |
size()
Answer the number of items currently in this TripleBunch.
|
getItemForTestingAt, keyIterator, keyIteratorpublic HashedTripleBunch(TripleBunch b)
public boolean contains(Triple t)
TripleBuncht.contains in interface TripleBunchpublic boolean containsBySameValueAs(Triple t)
TripleBunchcontainsBySameValueAs in interface TripleBunchpublic int size()
size in interface TripleBunchTripleBunch.size()public int currentCapacity()
public 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)
HashCommonkey from this hash's keys if it
is present (if it's absent, do nothing). If a key is removed, the
removeAssociatedValues will be invoked. If a key
is moved, the moveAssociatedValues method will
be called.remove in interface TripleBunchremove in class HashCommon<Triple>public ExtendedIterator<Triple> iterator()
TripleBunchiterator in interface TripleBunchpublic ExtendedIterator<Triple> iterator(HashCommon.NotifyEmpty container)
TripleBunchemptied method of
container is invoked.iterator in interface TripleBunchLicenced under the Apache License, Version 2.0