Package com.kenshoo.pl.entity
Interface Entity
-
- All Known Subinterfaces:
CurrentEntityState
- All Known Implementing Classes:
CurrentEntityMutableState,EntityWithGeneratedId,EntityWithNullForMissingField,FinalEntityState
public interface Entity
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleancontainsField(EntityField<?,?> field)<T> Tget(EntityField<?,T> field)default <E extends EntityType<E>>
java.util.List<FieldsValueMap<E>>getMany(E type)default <T> Triptional<T>safeGet(EntityField<?,T> field)
-
-
-
Method Detail
-
containsField
boolean containsField(EntityField<?,?> field)
-
get
<T> T get(EntityField<?,T> field)
-
safeGet
default <T> Triptional<T> safeGet(EntityField<?,T> field)
- Type Parameters:
T- the type of value in the field- Parameters:
field- the field whose value should be fetched- Returns:
- the field value if not
null; orTriptional.nullInstance()ifnull; orTriptional.absent()if the field doesn't exist
-
getMany
default <E extends EntityType<E>> java.util.List<FieldsValueMap<E>> getMany(E type)
-
-