Class EntityEntry.Builder
- java.lang.Object
-
- com.feedzai.commons.sql.abstraction.entry.EntityEntry.Builder
-
- All Implemented Interfaces:
Builder<EntityEntry>,Serializable
- Enclosing class:
- EntityEntry
public static class EntityEntry.Builder extends Object implements Builder<EntityEntry>, Serializable
Builder to create immutableEntityEntryobjects.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityEntrybuild()Builds the final immutable instance.Objectget(String key)Gets the value given the pair.EntityEntry.Builderset(String k, Object v)Adds the specified key/value pair.EntityEntry.Builderset(Map<String,Object> map)Adds all the entries in given map to the entity entry.
-
-
-
Method Detail
-
set
public EntityEntry.Builder set(String k, Object v)
Adds the specified key/value pair.- Parameters:
k- The key.v- The value.- Returns:
- This builder.
-
set
public EntityEntry.Builder set(Map<String,Object> map)
Adds all the entries in given map to the entity entry.- Parameters:
map- The map to add.- Returns:
- This builder.
-
get
public Object get(String key)
Gets the value given the pair.- Parameters:
key- The key.- Returns:
- The object hold by the key.
-
build
public EntityEntry build()
Description copied from interface:BuilderBuilds the final immutable instance.- Specified by:
buildin interfaceBuilder<EntityEntry>- Returns:
- The final immutable instance.
-
-