T - public class Groupify<T>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Groupify.Group<U>
Entry
|
| Constructor and Description |
|---|
Groupify(int capacity)
Constructs a new hash groupify operator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(T element)
Adds a new element
|
Groupify.Group<T> |
first()
Returns the first entry for iterations
|
Groupify.Group<T> |
get(T element)
Returns the matching entry, if any
|
int |
size()
Returns the current number of entries
|
public Groupify(int capacity)
capacity - The capacitypublic void add(T element)
element - public Groupify.Group<T> first()
public Groupify.Group<T> get(T element)
element - public int size()