java.io.Serializable
, java.util.function.ObjIntConsumer<T>
, ObjectIntProcedure<T>
public final class BagAddOccurrencesProcedure<T> extends java.lang.Object implements ObjectIntProcedure<T>
Constructor | Description |
---|---|
BagAddOccurrencesProcedure(MutableBag<T> mutableBag) |
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) |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
accept
public BagAddOccurrencesProcedure(MutableBag<T> mutableBag)
public static <T> BagAddOccurrencesProcedure<T> on(MutableBag<T> mutableBag)
public void value(T each, int occurrences)
value
in interface ObjectIntProcedure<T>
public MutableBag<T> getResult()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2004–2020. All rights reserved.