public class StatusCounter extends Object
| Constructor and Description |
|---|
StatusCounter() |
| Modifier and Type | Method and Description |
|---|---|
int |
getValueFor(Status status)
Gets the counter for given status.
|
void |
incrementFor(Status status)
Increments status counter by 1.
|
int |
size()
Sums all occurrences for all statuses.
|
public void incrementFor(Status status)
status - status for which the counter should be incremented.public int getValueFor(Status status)
public int size()
Copyright © 2016. All rights reserved.