public class MinByProcedure<T,V extends java.lang.Comparable<? super V>>
extends java.lang.Object
implements com.gs.collections.api.block.procedure.Procedure<T>
Procedure that holds on to the minimum element seen so far,
determined by the Function.| Modifier and Type | Field and Description |
|---|---|
protected V |
cachedResultValue |
protected com.gs.collections.api.block.function.Function<? super T,? extends V> |
function |
protected T |
result |
protected boolean |
visitedAtLeastOnce |
| Constructor and Description |
|---|
MinByProcedure(com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
| Modifier and Type | Method and Description |
|---|---|
T |
getResult() |
boolean |
isVisitedAtLeastOnce() |
void |
value(T each) |