Top Description Fields Constructors Methods
org.eclipse.collections.impl.block.procedure

public Class MinByProcedure<T, V extends Comparable<? super V>>

extends Object
implements Procedure<T>
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.block.procedure.Procedure, java.io.Serializable, java.util.function.Consumer
Imports
java.util.NoSuchElementException, .Optional, org.eclipse.collections.api.block.function.Function, org.eclipse.collections.api.block.procedure.Procedure

Implementation of Procedure that holds on to the minimum element seen so far, determined by the Function.

Field Summary

Modifier and TypeField and Description
protected V
protected final Function<? super T, ? extends V>
protected T
private static final long
protected boolean

Constructor Summary

AccessConstructor and Description
public
MinByProcedure(Function<? super T, ? extends V> function)

Method Summary

Modifier and TypeMethod and Description
public T
public Optional<T>
public boolean
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cachedResultValueback to summary
protected V cachedResultValue
functionback to summary
protected final Function<? super T, ? extends V> function
resultback to summary
protected T result
serialVersionUIDback to summary
private static final long serialVersionUID
visitedAtLeastOnceback to summary
protected boolean visitedAtLeastOnce

Constructor Detail

MinByProcedureback to summary
public MinByProcedure(Function<? super T, ? extends V> function)

Method Detail

getResultback to summary
public T getResult()
getResultOptionalback to summary
public Optional<T> getResultOptional()
isVisitedAtLeastOnceback to summary
public boolean isVisitedAtLeastOnce()
valueback to summary
public void value(T each)

Implements org.eclipse.collections.api.block.procedure.Procedure.value.

Annotations
@Override