public class ResCloudletList extends Object
| Constructor and Description |
|---|
ResCloudletList() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends ResCloudlet> |
getByIdAndUserId(List<T> list,
int cloudletId,
int userId)
Returns a given Cloudlet.
|
static <T extends ResCloudlet> |
indexOf(List<T> list,
int cloudletId,
int userId)
Finds the index of a Cloudlet inside the list.
|
static <T extends ResCloudlet> |
move(List<T> listFrom,
List<T> listTo,
T cloudlet)
Move a ResCloudlet object from this linked-list into a specified one.
|
public static <T extends ResCloudlet> ResCloudlet getByIdAndUserId(List<T> list, int cloudletId, int userId)
cloudletId - a Cloudlet IduserId - an User Idlist - the listIndexOutOfBoundsException - - if a Cloudlet with specified Id and user id is not in the
list.public static <T extends ResCloudlet> int indexOf(List<T> list, int cloudletId, int userId)
cloudletId - a Cloudlet IduserId - an User Idlist - the list-1 if the list does not contain this Cloudlet.public static <T extends ResCloudlet> boolean move(List<T> listFrom, List<T> listTo, T cloudlet)
listFrom - the list fromlistTo - the list tocloudlet - the cloudletCopyright © 2012 The Cloud Computing and Distributed Systems (CLOUDS) Laboratory, The University of Melbourne. All Rights Reserved.