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

public Class AtomicCountProcedure<T>

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.concurrent.atomic.AtomicInteger, org.eclipse.collections.api.block.predicate.Predicate, org.eclipse.collections.api.block.procedure.Procedure

Applies a predicate to an object and increments a count if it returns true.

Field Summary

Modifier and TypeField and Description
private final AtomicInteger
private final Predicate<? super T>
private static final long

Constructor Summary

AccessConstructor and Description
public
AtomicCountProcedure(Predicate<? super T> predicate)

Method Summary

Modifier and TypeMethod and Description
public int
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

countback to summary
private final AtomicInteger count
predicateback to summary
private final Predicate<? super T> predicate
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

AtomicCountProcedureback to summary
public AtomicCountProcedure(Predicate<? super T> predicate)

Method Detail

getCountback to summary
public int getCount()
valueback to summary
public void value(T object)

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

Annotations
@Override