public abstract class ConfigurableVisitor extends java.lang.Object implements java.util.function.Predicate<Configurable>
Modifier and Type | Class and Description |
---|---|
static class |
ConfigurableVisitor.ByID
|
Modifier and Type | Field and Description |
---|---|
static java.util.function.Predicate<Configurable> |
ALL |
Constructor and Description |
---|
ConfigurableVisitor() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
accept(Configurable configurable) |
static void |
collect(java.util.function.Consumer<Configurable> visitor,
Configurable [] configurables) |
Configurable |
find(ConfigurableGroup... groups) |
static Configurable |
find(java.util.function.Predicate<Configurable> visitor,
Configurable [] configurables) |
static Configurable |
find(java.util.function.Predicate<Configurable> visitor,
java.util.List<? extends ConfigurableGroup> groups) |
static java.util.List<Configurable> |
findAll(java.util.function.Predicate<Configurable> visitor,
java.util.List<? extends ConfigurableGroup> groups) |
static Configurable |
findById(java.lang.String id,
java.util.List<? extends ConfigurableGroup> groups) |
static Configurable |
findByType(java.lang.Class<? extends Configurable> type,
java.util.List<? extends ConfigurableGroup> groups) |
static java.lang.String |
getId(Configurable configurable) |
boolean |
test(Configurable configurable) |
public static final java.util.function.Predicate<Configurable> ALL
public boolean test(Configurable configurable)
test
in interface java.util.function.Predicate<Configurable>
protected abstract boolean accept(Configurable configurable)
public final Configurable find(ConfigurableGroup... groups)
public static Configurable findById(java.lang.String id, java.util.List<? extends ConfigurableGroup> groups)
public static Configurable findByType(java.lang.Class<? extends Configurable> type, java.util.List<? extends ConfigurableGroup> groups)
public static Configurable find(java.util.function.Predicate<Configurable> visitor, java.util.List<? extends ConfigurableGroup> groups)
public static Configurable find(java.util.function.Predicate<Configurable> visitor, Configurable [] configurables)
public static java.util.List<Configurable> findAll(java.util.function.Predicate<Configurable> visitor, java.util.List<? extends ConfigurableGroup> groups)
public static void collect(java.util.function.Consumer<Configurable> visitor, Configurable [] configurables)
public static java.lang.String getId(Configurable configurable)