| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private static final long | |
| public static final IntFunction |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public int | |
| public void | |
| public void | readExternal(ObjectInput in)
Implements java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. |
| public void | |
| public String | |
| public void | writeExternal(ObjectOutput out)
Implements java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |
| count | back to summary |
|---|---|
| private int count | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| TO_COUNT | back to summary |
|---|---|
| public static final IntFunction<Counter> TO_COUNT | |
| Counter | back to summary |
|---|---|
| public Counter(int startCount) | |
| Counter | back to summary |
|---|---|
| public Counter() | |
| add | back to summary |
|---|---|
| public void add(int value) | |
| decrement | back to summary |
|---|---|
| public void decrement() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getCount | back to summary |
|---|---|
| public int getCount() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| increment | back to summary |
|---|---|
| public void increment() | |
| readExternal | back to summary |
|---|---|
| public void readExternal(ObjectInput in) throws IOException Implements java. Doc from java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.
| |
| reset | back to summary |
|---|---|
| public void reset() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput out) throws IOException Implements java. Doc from java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.
| |