java.lang.Object
com.genologics.ri.Links
- All Implemented Interfaces:
Batch<Link>,Serializable,Iterable<Link>
The representation of a list of resource links.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a link to this collection.Adds a linkable object as a link to this collection.voidAdds all links from another Links object.voidaddAll(Collection<Link> links) Adds all links from a collection.getLinks()Gets the list of links.getList()Gets the list of links for the Batch interface.intgetSize()Gets the number of links in this collection.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
linkList
The list of links.
-
-
Constructor Details
-
Links
public Links()Default constructor. -
Links
public Links(int capacity) Constructor with initial capacity.- Parameters:
capacity- The initial capacity of the link list.
-
Links
Constructor from a collection of links.- Parameters:
links- The collection of links.
-
Links
Copy constructor.- Parameters:
links- The Links object to copy.
-
-
Method Details
-
getLinks
Gets the list of links.- Returns:
- The list of links.
-
add
Adds a link to this collection.- Parameters:
link- The link to add.- Returns:
- The link that was added.
-
add
Adds a linkable object as a link to this collection.- Parameters:
link- The linkable object to add.- Returns:
- The link that was created and added.
-
addAll
Adds all links from another Links object.- Parameters:
links- The Links object containing links to add.
-
addAll
Adds all links from a collection.- Parameters:
links- The collection of links to add.
-
getList
Gets the list of links for the Batch interface. -
getSize
public int getSize()Gets the number of links in this collection.
-