Package com.kenshoo.pl.entity.internal
Class LazyDelegatingMultiSupplier<E extends EntityType<E>>
- java.lang.Object
-
- com.kenshoo.pl.entity.internal.LazyDelegatingMultiSupplier<E>
-
- All Implemented Interfaces:
FetchEntityFields,MultiFieldValueSupplier<E>
public class LazyDelegatingMultiSupplier<E extends EntityType<E>> extends java.lang.Object implements MultiFieldValueSupplier<E>
Created by yuvalr on 2/15/16.
-
-
Constructor Summary
Constructors Constructor Description LazyDelegatingMultiSupplier(MultiFieldValueSupplier<E> multiSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.stream.Stream<EntityField<?,?>>fetchFields(ChangeOperation changeOperation)FieldsValueMap<E>supply(CurrentEntityState currentState)Returns a set of new values given an existing currentState.
-
-
-
Constructor Detail
-
LazyDelegatingMultiSupplier
public LazyDelegatingMultiSupplier(MultiFieldValueSupplier<E> multiSupplier)
-
-
Method Detail
-
supply
public FieldsValueMap<E> supply(CurrentEntityState currentState) throws ValidationException
Description copied from interface:MultiFieldValueSupplierReturns a set of new values given an existing currentState. In most of the cases should useFieldsValueMapImpl.- Specified by:
supplyin interfaceMultiFieldValueSupplier<E extends EntityType<E>>- Parameters:
currentState- entity before the change- Returns:
- new values
- Throws:
ValidationException
-
fetchFields
public java.util.stream.Stream<EntityField<?,?>> fetchFields(ChangeOperation changeOperation)
- Specified by:
fetchFieldsin interfaceFetchEntityFields- Returns:
- a list of fields to fetch.
-
-