public class TinyHashSet<T>
extends java.lang.Object
implements java.lang.Iterable<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
TinyHashSet.SingleElementIterator<T> |
| Constructor and Description |
|---|
TinyHashSet()
Creates an empty set.
|
TinyHashSet(T o)
Creates a set with one element.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T o) |
boolean |
contains(T o) |
java.util.Set<T> |
copy() |
java.util.Iterator<T> |
iterator() |
boolean |
remove(T o) |
int |
size() |
public TinyHashSet()
public TinyHashSet(T o)
Copyright (c) 2004-2012 Oracle. All rights reserved.