public class LocationPredicates
extends java.lang.Object
Constructor and Description |
---|
LocationPredicates() |
Modifier and Type | Method and Description |
---|---|
static <T> com.google.common.base.Predicate<Location> |
configEqualTo(ConfigKey.HasConfigKey<T> configKey,
T val) |
static <T> com.google.common.base.Predicate<Location> |
configEqualTo(ConfigKey<T> configKey,
T val) |
static <T> com.google.common.base.Predicate<Location> |
displayNameEqualTo(T val) |
static <T> com.google.common.base.Predicate<Location> |
idEqualTo(T val) |
static <T> com.google.common.base.Predicate<Location> |
isChildOf(Location parent)
Returns a predicate that determines if a given location is a direct child of this
parent . |
static <T> com.google.common.base.Predicate<Location> |
isDescendantOf(Location ancestor)
Returns a predicate that determines if a given location is a descendant of this
ancestor . |
static <T> com.google.common.base.Predicate<Location> |
managed() |
public static <T> com.google.common.base.Predicate<Location> idEqualTo(T val)
public static <T> com.google.common.base.Predicate<Location> displayNameEqualTo(T val)
public static <T> com.google.common.base.Predicate<Location> configEqualTo(ConfigKey<T> configKey, T val)
public static <T> com.google.common.base.Predicate<Location> configEqualTo(ConfigKey.HasConfigKey<T> configKey, T val)
public static <T> com.google.common.base.Predicate<Location> isChildOf(Location parent)
parent
.public static <T> com.google.common.base.Predicate<Location> isDescendantOf(Location ancestor)
ancestor
.public static <T> com.google.common.base.Predicate<Location> managed()