Constructor and Description |
---|
RiakLinks() |
Modifier and Type | Method and Description |
---|---|
RiakLinks |
addLink(RiakLink link)
Adds a
RiakLink |
RiakLinks |
addLinks(Collection<RiakLink> links)
Add
RiakLink s |
boolean |
equals(Object o) |
Set<RiakLink> |
getLinks()
Return all the links.
|
int |
hashCode() |
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
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
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)
RiakLink
slinks
- a Collection of RiakLink objects to addpublic RiakLinks addLink(RiakLink link)
RiakLink
link
- a RiakLink
to be addedpublic boolean removeLink(RiakLink link)
RiakLink
link
- 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 © 2016. All rights reserved.