Entity - the type of the entity being browsedpublic interface ResolvableToSingle<Entity>
| Modifier and Type | Method and Description |
|---|---|
Entity |
entity()
Resolves the entity and returns it.
|
default boolean |
exists()
Similar to
entity() but merely checks whether the entity exists on the position in the inventory
traversal. |
Entity entity() throws EntityNotFoundException, RelationNotFoundException
EntityNotFoundException - if there is no entity corresponding to the traversalRelationNotFoundException - if there is no relation corresponding to the traversaldefault boolean exists()
entity() but merely checks whether the entity exists on the position in the inventory
traversal.
Note that the default implementation might not be optimal performance-wise because it tries to fully resolve
the entity using the entity() method but discards that result right after.
Copyright © 2015 Red Hat, Inc.. All rights reserved.