final class Count
extends java.lang.Object
implements java.io.Serializable
int
, for multisets to use in tracking counts of values.Modifier and Type | Field and Description |
---|---|
private int |
value |
Constructor and Description |
---|
Count(int value) |
Modifier and Type | Method and Description |
---|---|
void |
add(int delta) |
int |
addAndGet(int delta) |
boolean |
equals(java.lang.Object obj) |
int |
get() |
int |
getAndSet(int newValue) |
int |
hashCode() |
void |
set(int newValue) |
java.lang.String |
toString() |
public int get()
public void add(int delta)
public int addAndGet(int delta)
public void set(int newValue)
public int getAndSet(int newValue)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object