Class FixedFieldValueSupplier<T>
- java.lang.Object
-
- com.kenshoo.pl.entity.spi.helpers.FixedFieldValueSupplier<T>
-
- All Implemented Interfaces:
FetchEntityFields,FieldValueSupplier<T>
public class FixedFieldValueSupplier<T> extends java.lang.Object implements FieldValueSupplier<T>
-
-
Constructor Summary
Constructors Constructor Description FixedFieldValueSupplier(T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.stream.Stream<EntityField<?,?>>fetchFields(ChangeOperation changeOperation)Tsupply(CurrentEntityState currentState)Returns the new value for a field given an existing entity
-
-
-
Constructor Detail
-
FixedFieldValueSupplier
public FixedFieldValueSupplier(T value)
-
-
Method Detail
-
supply
public T supply(CurrentEntityState currentState)
Description copied from interface:FieldValueSupplierReturns the new value for a field given an existing entity- Specified by:
supplyin interfaceFieldValueSupplier<T>- Parameters:
currentState- entity before the change- Returns:
- new field value
-
fetchFields
public java.util.stream.Stream<EntityField<?,?>> fetchFields(ChangeOperation changeOperation)
- Specified by:
fetchFieldsin interfaceFetchEntityFields- Returns:
- a list of fields to fetch.
-
-