T - the type of objects, which must have a sensible equals() and hashCode() methodspublic class Ties<T> extends Object
| Constructor and Description |
|---|
Ties(List<T> objects)
Count the number of occurrences of each distinctive value.
|
| Modifier and Type | Method and Description |
|---|---|
long |
get(T obj)
Get the number of occurrences of an object.
|
Set<T> |
objects()
Get the set of objects counted.
|
Collection<Long> |
values()
Get the numbers of occurrences of the objects.
|
public Collection<Long> values()
public long get(T obj)
obj - an objectCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.