Class ResourceList<Type extends IridaRepresentationModel>
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.model.IridaRepresentationModel
-
- ca.corefacility.bioinformatics.irida.model.remote.resource.ResourceList<Type>
-
- Type Parameters:
Type
- The type of object being held in this list
public class ResourceList<Type extends IridaRepresentationModel> extends IridaRepresentationModel
Class to hold a list of resources when being read from a remote Irida API
-
-
Constructor Summary
Constructors Constructor Description ResourceList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Type>
getResources()
Get the list of resourcesjava.lang.Long
getTotalResources()
Get the total number of resources in this listvoid
setResources(java.util.List<Type> resources)
Set the list of resourcesvoid
setTotalResources(java.lang.Long totalResources)
Set the total number of resources-
Methods inherited from class ca.corefacility.bioinformatics.irida.model.IridaRepresentationModel
add, add, equals, getLink, getLinks, getRemoteStatus, getSelfHref, hashCode, hasLink, hasLinks, removeLinks, setRemoteStatus, toString
-
-
-
-
Method Detail
-
getResources
public java.util.List<Type> getResources()
Get the list of resources- Returns:
- the
IridaRepresentationModel
collection.
-
setResources
public void setResources(java.util.List<Type> resources)
Set the list of resources- Parameters:
resources
- theIridaRepresentationModel
collection.
-
getTotalResources
public java.lang.Long getTotalResources()
Get the total number of resources in this list- Returns:
- the total number of
IridaRepresentationModel
in the collection.
-
setTotalResources
public void setTotalResources(java.lang.Long totalResources)
Set the total number of resources- Parameters:
totalResources
- the total number ofIridaRepresentationModel
in the collection.
-
-