public class SmallSet extends AbstractSet
This implementation has the useful property that the iteration order is the same as the order in which the items are added.
Constructor and Description |
---|
SmallSet() |
SmallSet(Collection col) |
SmallSet(int size) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Object o) |
boolean |
contains(Object o) |
Iterator |
iterator() |
int |
size() |
equals, hashCode, removeAll
addAll, clear, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
public SmallSet()
public SmallSet(int size)
public SmallSet(Collection col)
public boolean contains(Object o)
contains
in interface Collection
contains
in interface Set
contains
in class AbstractCollection
public int size()
size
in interface Collection
size
in interface Set
size
in class AbstractCollection
public boolean add(Object o)
add
in interface Collection
add
in interface Set
add
in class AbstractCollection
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in interface Set
iterator
in class AbstractCollection
Copyright © 2014 BioJava. All rights reserved.