Class BagAddOccurrencesProcedure<T>
- java.lang.Object
-
- org.eclipse.collections.impl.block.procedure.BagAddOccurrencesProcedure<T>
-
- All Implemented Interfaces:
Serializable,ObjIntConsumer<T>,ObjectIntProcedure<T>
public final class BagAddOccurrencesProcedure<T> extends Object implements ObjectIntProcedure<T>
- Since:
- 5.0.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BagAddOccurrencesProcedure(MutableBag<T> mutableBag)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableBag<T>getResult()static <T> BagAddOccurrencesProcedure<T>on(MutableBag<T> mutableBag)StringtoString()voidvalue(T each, int occurrences)-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure
accept
-
-
-
-
Constructor Detail
-
BagAddOccurrencesProcedure
public BagAddOccurrencesProcedure(MutableBag<T> mutableBag)
-
-
Method Detail
-
on
public static <T> BagAddOccurrencesProcedure<T> on(MutableBag<T> mutableBag)
-
value
public void value(T each, int occurrences)
- Specified by:
valuein interfaceObjectIntProcedure<T>
-
getResult
public MutableBag<T> getResult()
-
-