Class BagAddOccurrencesProcedure<T>
- java.lang.Object
-
- org.eclipse.collections.impl.block.procedure.BagAddOccurrencesProcedure<T>
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.function.ObjIntConsumer<T>
,ObjectIntProcedure<T>
public final class BagAddOccurrencesProcedure<T> extends java.lang.Object implements ObjectIntProcedure<T>
- Since:
- 5.0.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private MutableBag<T>
mutableBag
private static long
serialVersionUID
-
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)
java.lang.String
toString()
void
value(T each, int occurrences)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure
accept
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
mutableBag
private final MutableBag<T> mutableBag
-
-
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:
value
in interfaceObjectIntProcedure<T>
-
getResult
public MutableBag<T> getResult()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-