X - The entity typeY - The attribute typepublic interface AttributeAccessor<X,Y>
| Modifier and Type | Method | Description |
|---|---|---|
Y |
get(X entity) |
Returns the attribute value of the given entity.
|
Y |
getNullSafe(X entity) |
Returns the attribute value of the given entity or null if the entity is null.
|
void |
set(X entity,
Y value) |
Sets the attribute to the given value on the given entity.
|
Y get(X entity)
entity - The entityY getNullSafe(X entity)
entity - The entityCopyright © 2014–2020 Blazebit. All rights reserved.