Class DerivativesSearchRequest
java.lang.Object
com.persequor.extension.eventservice.DerivativesSearchRequest
-
Method Summary
Modifier and TypeMethodDescriptionaddEpcs
(Collection<String> epcs) copy()
This will create a copy of the current request.int
getDepth()
getEpcs()
static DerivativesSearchRequest
of
(QuantityElement... quantityElements) static DerivativesSearchRequest
static DerivativesSearchRequest
of
(Collection<String> epcs) static DerivativesSearchRequest
of
(List<QuantityElement> quantityElements) setDepth
(int depth) setFilter
(Predicate<Derivative> filter) Sets filter predicate which decides if a derivative should be included in the resulting derivatives tree.setFromDate
(ZonedDateTime fromDate) setToDate
(ZonedDateTime toDate) This will set the expansion mode of the EPCs in the request.
-
Method Details
-
of
-
of
-
of
-
of
-
withEpcExpansion
This will set the expansion mode of the EPCs in the request. This will not affect EPC in the recursive lookups only the ones in the Request will be expanded. The default is DISABLED.- Parameters:
mode
- the mode of EPC Expansion to use.- Returns:
- a search request for further chaining
- See Also:
-
getDepth
public int getDepth() -
getFromDate
-
getQuantityElements
-
getToDate
-
setFromDate
-
setDepth
-
setToDate
-
addEpcs
-
getFilter
- See Also:
-
setFilter
Sets filter predicate which decides if a derivative should be included in the resulting derivatives tree.- Parameters:
filter
- A predicate implementation. Can be used for filtering and pruning. The lambda/method passed should return true if the derivative is needed to be included and false if not.- Returns:
- DerivativesSearchRequest this request
-
getEpcs
-
getEpcExpanderMode
-
copy
This will create a copy of the current request. This is useful if you want to modify the request without affecting the original request.- Returns:
- a copy of the current request
-