public class BaseDerivedAttributeLoader<T> extends BaseAttributeLoader<T> implements DerivedAttributeLoader<T>
| Constructor and Description |
|---|
BaseDerivedAttributeLoader(AttributeSpec<T> attributeSpec,
Set<AttributeSpec<?>> dependencies,
Set<AttributeContextDependency> contextDependencies,
AttributeCachingStrategy cachingStrategy,
TrailItemSet globalTrail,
Function<DerivedAttributeContext,AttributeValue<T>> loadingFunction) |
| Modifier and Type | Method and Description |
|---|---|
AttributeValue<T> |
loadValue(DerivedAttributeContext context)
Performs the loading.
|
getAttributeDependencies, getAttributeSpec, getCachingStrategy, getContextDependencies, getGlobalTrailclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttributeDependencies, getAttributeSpec, getCachingStrategy, getContextDependencies, getGlobalTrailpublic BaseDerivedAttributeLoader(@NotNull
AttributeSpec<T> attributeSpec,
@Nullable
Set<AttributeSpec<?>> dependencies,
@Nullable
Set<AttributeContextDependency> contextDependencies,
@Nullable
AttributeCachingStrategy cachingStrategy,
@Nullable
TrailItemSet globalTrail,
@NotNull
Function<DerivedAttributeContext,AttributeValue<T>> loadingFunction)
@Nullable public AttributeValue<T> loadValue(@NotNull DerivedAttributeContext context)
DerivedAttributeLoaderPerforms the loading.
If the value is missing or empty, the loader should return AttributeValue.undefined(). If for some reason this loader
is not applicable for the given row, it should return null.
loadValue in interface DerivedAttributeLoader<T>context - loading contextCopyright © 2022 ALM Works. All Rights Reserved.