U
- The base type of the business object to be found.public interface BreadcrumbFinderI<U extends BOI>
This API is designed to be used by clients and is completely decoupled from the internal context objects used for traversal.
Modifier and Type | Method and Description |
---|---|
java.util.Optional<U> |
findFirst()
Finds the first business object of any parent context in the chain.
|
U |
findFirstBO()
Finds the first business object of any parent context in the chain.
|
<V extends U> |
findFirstBOOfType(java.lang.Class<V> objectType)
Finds the first business object of a specific type in the parent context chain.
|
U |
findFirstBOWhere(java.util.function.Predicate<U> predicate)
Finds the first business object of any parent context that fulfills a given predicate.
|
<V extends U> |
findFirstOfType(java.lang.Class<V> objectType)
Finds the first business object of a specific type in the parent context chain.
|
java.util.Optional<U> |
findFirstWhere(java.util.function.Predicate<U> predicate)
Finds the first business object of any parent context that fulfills a given predicate.
|
java.util.Optional<U> |
findParent()
Finds the business object of the immediate parent context.
|
U |
findParentBO()
Finds the business object of the immediate parent context.
|
java.util.Optional<U> findParent()
Optional
containing the parent's business object, or empty if not found.java.util.Optional<U> findFirst()
Optional
containing the first found business object, or empty if none are found.<V extends U> java.util.Optional<V> findFirstOfType(java.lang.Class<V> objectType)
V
- The specific type of the object.objectType
- The Class
of the business object you are looking for.Optional
containing the first found business object of the specified type.java.util.Optional<U> findFirstWhere(java.util.function.Predicate<U> predicate)
predicate
- A Predicate
to test the business object.Optional
containing the first business object that satisfies the predicate.U findParentBO()
null
if not found.U findFirstBO()
null
if none are found.<V extends U> V findFirstBOOfType(java.lang.Class<V> objectType)
V
- The specific type of the object.objectType
- The Class
of the business object you are looking for.null
if not found.U findFirstBOWhere(java.util.function.Predicate<U> predicate)
predicate
- A Predicate
to test the business object.null
if not found.Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.