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, getGlobalTrail
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttributeDependencies, getAttributeSpec, getCachingStrategy, getContextDependencies, getGlobalTrail
public 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)
DerivedAttributeLoader
Performs 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 © 2024 Tempo Software. All Rights Reserved.