public abstract class CompositeAttributeLoader<T,Loader extends AttributeLoader<T>,LoaderValue,Params,LoaderContext extends AttributeLoader.Context> extends AbstractAttributeLoader<T>
AttributeLoader.Aggregate<T>, AttributeLoader.AggregateContext<T>, AttributeLoader.Context, AttributeLoader.ForestIndependent<T>, AttributeLoader.Propagate<T>, AttributeLoader.PropagateContext<T>
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Predicate<AttributeLoader<?>> |
SPECIFIC_LOADER_PRED |
static La<AttributeLoader<?>,Boolean> |
UNIVERSAL_LOADER |
static com.google.common.base.Predicate<AttributeLoader<?>> |
UNIVERSAL_LOADER_PRED |
mySpec
Modifier and Type | Method and Description |
---|---|
protected abstract AttributeValue<LoaderValue> |
apply(Loader loader,
Params additionalParams,
LoaderContext context) |
static <T> AttributeLoader<T> |
create(AttributeSpec<T> spec,
List<AttributeLoader<T>> loaders) |
Set<? extends AttributeSpec<?>> |
getAttributeDependencies() |
AttributeCachingStrategy |
getCachingStrategy() |
boolean |
isEveryItemTypeSupported() |
boolean |
isItemTypeSupported(String itemType) |
protected AttributeValue<LoaderValue> |
loadValue(LoaderContext context,
Params additionalParams) |
getAttributeSpec
public static final La<AttributeLoader<?>,Boolean> UNIVERSAL_LOADER
public static final com.google.common.base.Predicate<AttributeLoader<?>> UNIVERSAL_LOADER_PRED
public static final com.google.common.base.Predicate<AttributeLoader<?>> SPECIFIC_LOADER_PRED
public static <T> AttributeLoader<T> create(AttributeSpec<T> spec, List<AttributeLoader<T>> loaders)
public boolean isEveryItemTypeSupported()
public boolean isItemTypeSupported(String itemType)
public AttributeCachingStrategy getCachingStrategy()
public Set<? extends AttributeSpec<?>> getAttributeDependencies()
protected final AttributeValue<LoaderValue> loadValue(LoaderContext context, Params additionalParams)
protected abstract AttributeValue<LoaderValue> apply(Loader loader, Params additionalParams, LoaderContext context)
Copyright © 2017 ALM Works. All Rights Reserved.