Interface ViewElement.WitherGetter<T extends ViewElement,U>
- Type Parameters:
T
- type of the view element
- All Known Implementing Classes:
AttributeWitherFunction
- Enclosing interface:
- ViewElement
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Function that fetches a value from a view element and optionally returns
it as a specific type for compile time checking.
Typical example: getting an attribute value.
-
Method Summary
Modifier and TypeMethodDescriptiondefault <V extends U,
W extends V>
ViewElement.WitherGetter<T,W> Cast the return value as a specific type, to avoid explicit casting in consumer code.getValueFrom
(T target)
-
Method Details
-
getValueFrom
-
as
Cast the return value as a specific type, to avoid explicit casting in consumer code.
-