| Constructor and Description |
|---|
RiakLinks() |
| Modifier and Type | Method and Description |
|---|---|
RiakLinks |
addLink(RiakLink link)
Adds a
RiakLink |
RiakLinks |
addLinks(Collection<RiakLink> links)
Add
RiakLinks |
Set<RiakLink> |
getLinks()
Return all the links.
|
boolean |
hasLink(RiakLink link)
Determine if a specific
RiakLink is present. |
boolean |
isEmpty()
Reports if there are any
RiakLink objects present |
Iterator<RiakLink> |
iterator()
Return an iterator
|
void |
removeAllLinks()
Remove all links
|
boolean |
removeLink(RiakLink link)
Remove a
RiakLink |
int |
size()
Returns the number of links present
|
public boolean isEmpty()
RiakLink objects presenttrue if there are links present, false otherwisepublic int size()
public boolean hasLink(RiakLink link)
RiakLink is present.link - The RiakLink to check for.true if the link is present, false otherwisepublic RiakLinks addLinks(Collection<RiakLink> links)
RiakLinkslinks - a Collection of RiakLink objects to addpublic RiakLinks addLink(RiakLink link)
RiakLinklink - a RiakLink to be addedpublic boolean removeLink(RiakLink link)
RiakLinklink - the RiakLink to removetrue if the link was present and was removed, false otherwisepublic void removeAllLinks()
public Set<RiakLink> getLinks()
Changes to the returned set do not modify this container.
Copyright © 2015. All rights reserved.