|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.vcloud.director.v1_5.predicates.EntityPredicates
public class EntityPredicates
Predicates for working with EntityType collections.
| Constructor Summary | |
|---|---|
EntityPredicates()
|
|
| Method Summary | ||
|---|---|---|
static
|
hrefEquals(URI href)
Matches entities with the given URI. |
|
static
|
idEquals(String id)
Matches entities with the given id. |
|
static
|
nameEquals(String name)
Matches entities with the given name. |
|
static
|
nameIn(Iterable<String> names)
Matches entities with names in the given collection. |
|
static
|
nameStartsWith(String prefix)
Matches entities with names starting with the given prefix. |
|
static
|
typeEquals(String type)
Matches entities of the given type. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EntityPredicates()
| Method Detail |
|---|
public static <T extends Entity> com.google.common.base.Predicate<T> idEquals(String id)
entities with the given id.
T - type of the entity, for example Vmid - value of the id attribute of the entity
public static <T extends Entity> com.google.common.base.Predicate<T> nameEquals(String name)
entities with the given name.
T - type of the entity, for example Vmname - value of the name attribute of the entity
public static <T extends Entity> com.google.common.base.Predicate<T> nameStartsWith(String prefix)
entities with names starting with the given prefix.
T - type of the entity, for example Vmname - prefix of the name attribute of the entity
public static <T extends Entity> com.google.common.base.Predicate<T> nameIn(Iterable<String> names)
entities with names in the given collection.
T - type of the entity, for example Vmnames - collection of values for the name attribute of the entity
public static <T extends Entity> com.google.common.base.Predicate<T> typeEquals(String type)
entities of the given type.
T - type of the entity, for example Vmtype - the media type string of the entity, for example VCloudDirectorMediaType#CATALOG
VCloudDirectorMediaTypepublic static <T extends Entity> com.google.common.base.Predicate<T> hrefEquals(URI href)
entities with the given URI.
T - type of the entity, for example Vmhref - the URI of the entity
VCloudDirectorMediaType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||