Class ReplacementList.FilterStream<R extends Replacement>
- java.lang.Object
-
- org.silverpeas.core.util.stream.StreamWrapper<R>
-
- org.silverpeas.core.workflow.api.user.ReplacementList.FilterStream<R>
-
- All Implemented Interfaces:
AutoCloseable
,BaseStream<R,Stream<R>>
,Stream<R>
- Enclosing class:
- ReplacementList<T extends Replacement<T>>
public class ReplacementList.FilterStream<R extends Replacement> extends StreamWrapper<R>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.stream.Stream
Stream.Builder<T extends Object>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReplacementList.FilterStream<R>
filterCurrentAndNextAt(Temporal temporal)
Filters on the specified temporal.ReplacementList.FilterStream<R>
filterCurrentAt(Temporal temporal)
Filters on the specified temporal.ReplacementList.FilterStream<R>
filterOnAtLeastOneRole(String... roles)
Filters on the given roles.ReplacementList.FilterStream<R>
filterOnAtLeastOneRole(List<String> roles)
Filters on the given roles.ReplacementList.FilterStream<R>
filterOnIncumbent(String... incumbentIds)
Filters on given incumbents.ReplacementList.FilterStream<R>
filterOnIncumbent(List<String> incumbentIds)
Filters on given incumbents.-
Methods inherited from class org.silverpeas.core.util.stream.StreamWrapper
allMatch, anyMatch, builder, close, collect, collect, concat, count, distinct, empty, filter, findAny, findFirst, flatMap, flatMapToDouble, flatMapToInt, flatMapToLong, forEach, forEachOrdered, generate, isParallel, iterate, iterator, limit, map, mapToDouble, mapToInt, mapToLong, max, min, noneMatch, of, of, onClose, parallel, peek, reduce, reduce, reduce, sequential, skip, sorted, sorted, spliterator, stream, toArray, toArray, unordered
-
-
-
-
Method Detail
-
filterCurrentAt
public ReplacementList.FilterStream<R> filterCurrentAt(Temporal temporal)
Filters on the specified temporal. Only replacements which the period includes the specified temporal will be kept.- Parameters:
temporal
- anTemporal
instance.- Returns:
- new instance of
ReplacementList.FilterStream
.
-
filterCurrentAndNextAt
public ReplacementList.FilterStream<R> filterCurrentAndNextAt(Temporal temporal)
Filters on the specified temporal. Only replacements which the period includes the specified temporal and replacements which the period is after the temporal will be kept.- Parameters:
temporal
- anTemporal
instance.- Returns:
- new instance of
ReplacementList.FilterStream
.
-
filterOnAtLeastOneRole
public ReplacementList.FilterStream<R> filterOnAtLeastOneRole(String... roles)
Filters on the given roles. For each replacement, the substitute and the incumbent must have one the given roles.- Parameters:
roles
- an array of roles as string.- Returns:
- new instance of
ReplacementList.FilterStream
.
-
filterOnAtLeastOneRole
public ReplacementList.FilterStream<R> filterOnAtLeastOneRole(List<String> roles)
Filters on the given roles. For each replacement, the substitute and the incumbent must have one the given roles.- Parameters:
roles
- an list of roles as string.- Returns:
- new instance of
ReplacementList.FilterStream
.
-
filterOnIncumbent
public ReplacementList.FilterStream<R> filterOnIncumbent(String... incumbentIds)
Filters on given incumbents.- Parameters:
incumbentIds
- incumbent ids.- Returns:
- new instance of
ReplacementList.FilterStream
.
-
filterOnIncumbent
public ReplacementList.FilterStream<R> filterOnIncumbent(List<String> incumbentIds)
Filters on given incumbents.- Parameters:
incumbentIds
- incumbent ids.- Returns:
- new instance of
ReplacementList.FilterStream
.
-
-