public class CountList extends Object implements Serializable
| Constructor and Description |
|---|
CountList() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int newValue)
Add new value to the counts if the previous values are greater than or equal to the new value.
|
int |
remove(int value)
Remove the given value from the counts
|
public boolean add(int newValue)
newValue - is the new value to be insertedtrue if the newValue is added, false if the newValue is not addedpublic int remove(int value)
value - is the value to be removedCopyright © 2019 WSO2. All rights reserved.