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