com.senn.magic.collections
Class ChainableLinkedHashSet<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet<E>
              extended by java.util.LinkedHashSet<E>
                  extended by com.senn.magic.collections.ChainableLinkedHashSet<E>
All Implemented Interfaces:
ChainableSet<E>, Serializable, Cloneable, Iterable<E>, Collection<E>, Set<E>

public class ChainableLinkedHashSet<E>
extends LinkedHashSet<E>
implements ChainableSet<E>

LinkedHashSet implementation of ChainableSet

Since:
3.5
Author:
Bart Thierens
Last modification: 23/01/2011
See Also:
Serialized Form

Constructor Summary
ChainableLinkedHashSet()
           
ChainableLinkedHashSet(Collection<? extends E> c)
           
ChainableLinkedHashSet(int initialCapacity)
           
ChainableLinkedHashSet(int initialCapacity, float loadFactor)
           
 
Method Summary
 ChainableSet<E> delete(Object o)
           
 ChainableSet<E> deleteAll(Collection<?> c)
           
 ChainableSet<E> empty()
           
 ChainableSet<E> keepAll(Collection<?> c)
           
 ChainableSet<E> put(E e)
           
 ChainableSet<E> putAll(Collection<? extends E> c)
           
 
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.senn.magic.collections.ChainableSet
add, addAll, clear, remove, removeAll, retainAll
 
Methods inherited from interface java.util.Set
contains, containsAll, equals, hashCode, isEmpty, iterator, size, toArray, toArray
 

Constructor Detail

ChainableLinkedHashSet

public ChainableLinkedHashSet()

ChainableLinkedHashSet

public ChainableLinkedHashSet(int initialCapacity)

ChainableLinkedHashSet

public ChainableLinkedHashSet(int initialCapacity,
                              float loadFactor)

ChainableLinkedHashSet

public ChainableLinkedHashSet(Collection<? extends E> c)
Method Detail

delete

public ChainableSet<E> delete(Object o)
Specified by:
delete in interface ChainableSet<E>
Returns:
See Also:
Set.remove(Object)

deleteAll

public ChainableSet<E> deleteAll(Collection<?> c)
Specified by:
deleteAll in interface ChainableSet<E>
Returns:
See Also:
Set.removeAll(Collection)

empty

public ChainableSet<E> empty()
Specified by:
empty in interface ChainableSet<E>
Returns:
See Also:
Set.clear()

keepAll

public ChainableSet<E> keepAll(Collection<?> c)
Specified by:
keepAll in interface ChainableSet<E>
Returns:
See Also:
Set.retainAll(Collection)

put

public ChainableSet<E> put(E e)
Specified by:
put in interface ChainableSet<E>
Returns:
See Also:
Set.add(Object)

putAll

public ChainableSet<E> putAll(Collection<? extends E> c)
Specified by:
putAll in interface ChainableSet<E>
Returns:
See Also:
Set.addAll(Collection)