B
- the type of bi-link subclasspublic abstract class BiLinkMap<B extends BiLink>
extends java.lang.Object
Constructor and Description |
---|
BiLinkMap() |
Modifier and Type | Method and Description |
---|---|
B |
add(Link link)
Adds the given link to our collection, returning the corresponding
bi-link (creating one if needed necessary).
|
java.util.Collection<B> |
biLinks()
Returns the bi-link instances in the collection.
|
protected abstract B |
create(LinkKey key,
Link link)
Creates a new instance of a bi-link.
|
int |
size()
Returns the number of bi-links in the collection.
|
protected abstract B create(LinkKey key, Link link)
key
- the link keylink
- the initial linkpublic B add(Link link)
link
- the link to add to the collectionpublic java.util.Collection<B> biLinks()
public int size()