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

public final Class BagAddOccurrencesProcedure<T>

extends Object
implements ObjectIntProcedure<T>
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure, java.io.Serializable, java.util.function.ObjIntConsumer
Imports
org.eclipse.collections.api.bag.MutableBag, org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure

Since
5.0.

Field Summary

Modifier and TypeField and Description
private final MutableBag<T>
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public MutableBag<T>
public static <T> BagAddOccurrencesProcedure<T>
on(MutableBag<T> mutableBag)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

mutableBagback to summary
private final MutableBag<T> mutableBag
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

BagAddOccurrencesProcedureback to summary
public BagAddOccurrencesProcedure(MutableBag<T> mutableBag)

Method Detail

getResultback to summary
public MutableBag<T> getResult()
onback to summary
public static <T> BagAddOccurrencesProcedure<T> on(MutableBag<T> mutableBag)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
valueback to summary
public void value(T each, int occurrences)

Implements org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure.value.

Annotations
@Override