@Component(value="cuba_EntityLoadInfoBuilder")
public class EntityLoadInfoBuilder
extends java.lang.Object
EntityLoadInfo
objects and provides additional methods for working with them.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Constructor and Description |
---|
EntityLoadInfoBuilder() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.util.Collection<EntityLoadInfo> collection,
Entity entity)
Check whether an info about the given entity instance is contained in the collection.
|
EntityLoadInfo |
create(Entity entity)
Create a new info instance with empty view name.
|
EntityLoadInfo |
create(Entity entity,
java.lang.String viewName)
Create a new info instance.
|
EntityLoadInfo |
parse(java.lang.String str)
Parse an info from the string.
|
public static final java.lang.String NAME
public EntityLoadInfo create(Entity entity, @Nullable java.lang.String viewName)
entity
- entity instanceviewName
- view name, can be nullpublic EntityLoadInfo create(Entity entity)
entity
- entity instance@Nullable public EntityLoadInfo parse(java.lang.String str)
str
- string representation of the info. See EntityLoadInfo
for formats.public boolean contains(java.util.Collection<EntityLoadInfo> collection, Entity entity)
collection
- collection of EntityLoadInfo objectsentity
- entity instance