public class VmList
extends java.lang.Object
| Constructor and Description |
|---|
VmList() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Vm> |
getById(java.util.List<T> vmList,
int id)
Return a reference to a Vm object from its ID.
|
static <T extends Vm> |
getByIdAndUserId(java.util.List<T> vmList,
int id,
int userId)
Return a reference to a Vm object from its ID and user ID.
|
public static <T extends Vm> T getById(java.util.List<T> vmList, int id)
id - ID of required VMvmList - the vm listpublic static <T extends Vm> T getByIdAndUserId(java.util.List<T> vmList, int id, int userId)
id - ID of required VMuserId - the user IDvmList - the vm list