public class StatusUtils extends Object
StatusWithIndex
and StatusWithIndices
objects.Constructor and Description |
---|
StatusUtils() |
Modifier and Type | Method and Description |
---|---|
protected static List<Integer> |
getIndicesWithStatusGe(List<StatusWithIndex> statuses,
Status threshold)
Retrieves the indices with a status >= the given threshold.
|
protected static Optional<Status> |
getStatus(Optional<StatusWithIndices> si)
Retrieves the
Status from a StatusWithIndices . |
protected static List<StatusWithIndex> |
toListWithIndices(List<Status> statuses)
Converts a list of
Status to a list of StatusWithIndex , using
the position in the array as the index. |
protected static List<Integer> getIndicesWithStatusGe(List<StatusWithIndex> statuses, Status threshold)
statuses
- threshold
- protected static List<StatusWithIndex> toListWithIndices(List<Status> statuses)
Status
to a list of StatusWithIndex
, using
the position in the array as the index.statuses
- protected static Optional<Status> getStatus(Optional<StatusWithIndices> si)
Status
from a StatusWithIndices
.si
- Copyright © 2017. All rights reserved.