java.io.Externalizable
, java.io.Serializable
public final class Counter
extends java.lang.Object
implements java.io.Externalizable
Modifier and Type | Field | Description |
---|---|---|
static IntFunction<Counter> |
TO_COUNT |
Modifier and Type | Method | Description |
---|---|---|
void |
add(int value) |
|
void |
decrement() |
|
boolean |
equals(java.lang.Object o) |
|
int |
getCount() |
|
int |
hashCode() |
|
void |
increment() |
|
void |
readExternal(java.io.ObjectInput in) |
|
void |
reset() |
|
java.lang.String |
toString() |
|
void |
writeExternal(java.io.ObjectOutput out) |
public static final IntFunction<Counter> TO_COUNT
public void increment()
public void decrement()
public void add(int value)
public int getCount()
public void reset()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException
readExternal
in interface java.io.Externalizable
java.io.IOException
Copyright © 2004–2018. All rights reserved.