E - The type of the entity produced by this factory, i.e. the facade.S - The super type of the entity, i.e. the generated super class.B - The builder type of the entity.public interface IEntityFactory<E extends IEntity,S extends IEntity,B extends EntityBuilder>
| Modifier and Type | Method and Description |
|---|---|
B |
newBuilder()
Create a new builder with all fields initialized to default values.
|
B |
newBuilder(S initial)
Create a new builder with all fields initialized from the given builder.
|
com.google.common.collect.ImmutableList<E> |
newImmutableList(org.symphonyoss.s2.common.dom.json.JsonArray<?> jsonArray)
Return a list of new entity instances created from the given JSON array.
|
com.google.common.collect.ImmutableSet<E> |
newImmutableSet(org.symphonyoss.s2.common.dom.json.JsonArray<?> jsonArray)
Return a set of new entity instances created from the given JSON array.
|
E |
newInstance(org.symphonyoss.s2.common.dom.json.ImmutableJsonObject jsonObject)
Return a new entity instance created from the given JSON serialization.
|
E |
newInstance(S builder)
Return a new entity instance created from the given other instance.
|
List<E> |
newMutableList(org.symphonyoss.s2.common.dom.json.JsonArray<?> jsonArray)
Return a list of new entity instances created from the given JSON array.
|
Set<E> |
newMutableSet(org.symphonyoss.s2.common.dom.json.JsonArray<?> jsonArray)
Return a set of new entity instances created from the given JSON array.
|
B newBuilder()
B newBuilder(S initial)
initial - A builder or instance whose values are copied into a new builder.E newInstance(org.symphonyoss.s2.common.dom.json.ImmutableJsonObject jsonObject) throws org.symphonyoss.s2.common.exception.InvalidValueException
jsonObject - The JSON serialized form of the required entity.org.symphonyoss.s2.common.exception.InvalidValueException - If the given JSON is not valid.E newInstance(S builder) throws org.symphonyoss.s2.common.exception.InvalidValueException
builder - a builder containing values of all fields for the required entity.org.symphonyoss.s2.common.exception.InvalidValueException - If the given values are not valid.List<E> newMutableList(org.symphonyoss.s2.common.dom.json.JsonArray<?> jsonArray) throws org.symphonyoss.s2.common.exception.InvalidValueException
jsonArray - An array of the JSON serialized form of the required entity.org.symphonyoss.s2.common.exception.InvalidValueException - If the given JSON is not valid.Set<E> newMutableSet(org.symphonyoss.s2.common.dom.json.JsonArray<?> jsonArray) throws org.symphonyoss.s2.common.exception.InvalidValueException
jsonArray - An array of the JSON serialized form of the required entity.org.symphonyoss.s2.common.exception.InvalidValueException - If the given JSON is not valid.com.google.common.collect.ImmutableList<E> newImmutableList(org.symphonyoss.s2.common.dom.json.JsonArray<?> jsonArray) throws org.symphonyoss.s2.common.exception.InvalidValueException
jsonArray - An array of the JSON serialized form of the required entity.org.symphonyoss.s2.common.exception.InvalidValueException - If the given JSON is not valid.com.google.common.collect.ImmutableSet<E> newImmutableSet(org.symphonyoss.s2.common.dom.json.JsonArray<?> jsonArray) throws org.symphonyoss.s2.common.exception.InvalidValueException
jsonArray - An array of the JSON serialized form of the required entity.org.symphonyoss.s2.common.exception.InvalidValueException - If the given JSON is not valid.Copyright © 2018 Symphony Software Foundation. All rights reserved.