Package com.google.common.collect
Class Count
java.lang.Object
com.google.common.collect.Count
- All Implemented Interfaces:
Serializable
A mutable value of type
int
, for multisets to use in tracking counts of values.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
value
private int value
-
-
Constructor Details
-
Count
Count(int value)
-
-
Method Details
-
get
public int get() -
add
public void add(int delta) -
addAndGet
public int addAndGet(int delta) -
set
public void set(int newValue) -
getAndSet
public int getAndSet(int newValue) -
hashCode
public int hashCode() -
equals
-
toString
-