public interface CdsAnnotatable
Modifier and Type | Method and Description |
---|---|
Stream<CdsAnnotation<?>> |
annotations()
|
static Predicate<CdsAnnotatable> |
byAnnotation(String annotation)
|
default <T> Optional<CdsAnnotation<T>> |
findAnnotation(String name)
Returns an
Optional wrapping a CdsAnnotation . |
Stream<CdsAnnotation<?>> annotations()
Stream
over the CdsAnnotation(s)
default <T> Optional<CdsAnnotation<T>> findAnnotation(String name)
Optional
wrapping a CdsAnnotation
.T
- the expected type of the annotation valuename
- the name of the CdsAnnotation
Optional
describing the CdsAnnotation
with the
given name, or an empty Optional
if there is no
CdsAnnotation
with this namestatic Predicate<CdsAnnotatable> byAnnotation(String annotation)
annotation
- the name of the CdsAnnotation
Predicate
filtering by annotationsCopyright © 2020 SAP. All rights reserved.