public abstract class DerivedAttributeLoader<T,D> extends AbstractForestIndependentAttributeLoader<T>
AttributeLoader.Aggregate<T>, AttributeLoader.AggregateContext<T>, AttributeLoader.Context, AttributeLoader.ForestIndependent<T>, AttributeLoader.Propagate<T>, AttributeLoader.PropagateContext<T>
Modifier and Type | Field and Description |
---|---|
protected AttributeSpec<? extends D> |
myDependency |
mySpec
Modifier | Constructor and Description |
---|---|
protected |
DerivedAttributeLoader(AttributeSpec<T> spec,
AttributeSpec<? extends D> dependency) |
Modifier and Type | Method and Description |
---|---|
Set<? extends AttributeSpec<?>> |
getAttributeDependencies() |
protected ItemIdentity |
getItemTrail(D value) |
protected abstract T |
getValue(D value,
AttributeLoader.Context context) |
static <T> AttributeLoader<T> |
idLoader(AttributeSpec<T> spec,
AttributeSpec<T> dependency) |
AttributeValue<T> |
loadValue(StructureRow row,
AttributeLoader.Context context) |
getCachingStrategy, isEveryItemTypeSupported, isItemTypeSupported
getAttributeSpec
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttributeSpec
protected final AttributeSpec<? extends D> myDependency
protected DerivedAttributeLoader(AttributeSpec<T> spec, AttributeSpec<? extends D> dependency)
public final Set<? extends AttributeSpec<?>> getAttributeDependencies()
getAttributeDependencies
in interface AttributeLoader<T>
getAttributeDependencies
in class AbstractForestIndependentAttributeLoader<T>
@NotNull public final AttributeValue<T> loadValue(StructureRow row, @NotNull AttributeLoader.Context context)
protected ItemIdentity getItemTrail(@NotNull D value)
protected abstract T getValue(@Nullable D value, AttributeLoader.Context context)
public static <T> AttributeLoader<T> idLoader(AttributeSpec<T> spec, AttributeSpec<T> dependency)
Copyright © 2019 ALM Works. All Rights Reserved.