Constructor and Description |
---|
ReferencePredicates() |
Modifier and Type | Method and Description |
---|---|
static <T extends Reference> |
hrefEquals(URI href)
|
static <T extends Reference> |
nameEquals(String name)
Matches
Reference s with the given name. |
static <T extends Reference> |
nameIn(Iterable<String> names)
Matches
Reference s with names in the given collection. |
static <T extends Reference> |
nameStartsWith(String prefix)
Matches
Reference s with names starting with the given prefix. |
static <T extends Reference> |
typeEquals(String type)
Matches
Reference s of the given type. |
public static <T extends Reference> com.google.common.base.Predicate<T> nameEquals(String name)
Reference
s with the given name.T
- type of the reference, for example Link
name
- value of the name attribute of the referenced objectpublic static <T extends Reference> com.google.common.base.Predicate<T> nameStartsWith(String prefix)
Reference
s with names starting with the given prefix.T
- type of the reference, for example Link
name
- prefix of the name attribute of the referenced objectpublic static <T extends Reference> com.google.common.base.Predicate<T> nameIn(Iterable<String> names)
Reference
s with names in the given collection.T
- type of the reference, for example Link
names
- collection of values for the name attribute of the referenced objectpublic static <T extends Reference> com.google.common.base.Predicate<T> typeEquals(String type)
Reference
s of the given type.T
- type of the reference, for example Link
type
- the media type string of the referenced object, for example VCloudDirectorMediaType#CATALOG
VCloudDirectorMediaType
Copyright © 2009-2013 jclouds. All Rights Reserved.