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.
|
void |
incrementFor(Status status,
int incrementBy)
Increments status counter.
|
public void incrementFor(Status status)
status - status for which the counter should be incremented.public void incrementFor(Status status, int incrementBy)
status - status for which the counter should be incremented.incrementBy - by this value counter will be incrementedpublic int getValueFor(Status status)
Copyright © 2015. All rights reserved.