public class CloudletList
extends java.lang.Object
| Constructor and Description |
|---|
CloudletList() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Cloudlet> |
getById(java.util.List<T> cloudletList,
int id)
Gets the by id.
|
static <T extends Cloudlet> |
getPositionById(java.util.List<T> cloudletList,
int id)
Returns the position of the cloudlet with that id, if it exists.
|
static <T extends Cloudlet> |
sort(java.util.List<T> cloudletList)
Sorts the Cloudlets in a list based on their lengths.
|
public static <T extends Cloudlet> T getById(java.util.List<T> cloudletList, int id)
cloudletList - the cloudlet listid - the idpublic static <T extends Cloudlet> int getPositionById(java.util.List<T> cloudletList, int id)
cloudletList - - the list of cloudlets.id - - the id we search for.public static <T extends Cloudlet> void sort(java.util.List<T> cloudletList)
cloudletList - the cloudlet list