Package com.twelvemonkeys.util
Class LinkedSet<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- com.twelvemonkeys.util.LinkedSet<E>
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.Set<E>
public class LinkedSet<E> extends java.util.AbstractSet<E> implements java.util.Set<E>, java.lang.Cloneable, java.io.Serializable
Generic map and linked list implementation of theSet
interface, with predictable iteration order.Resembles
LinkedHashSet
from JDK 1.4+, but is backed by a genericLinkedMap
, rather than implementing a particular algoritm.- Version:
- $Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-core/src/main/java/com/twelvemonkeys/util/LinkedSet.java#1 $
- Author:
- Harald Kuhr
- See Also:
LinkedMap
, Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(E pValue)
boolean
addAll(java.util.Collection<? extends E> pCollection)
java.util.Iterator<E>
iterator()
int
size()
-
Methods inherited from class java.util.AbstractCollection
clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
-
-