ch.elca.el4j.util.collections
Class IdentityHashSet<E>

java.lang.Object
  extended by ch.elca.el4j.util.collections.IdentityHashSet<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>, Set<E>

public class IdentityHashSet<E>
extends Object
implements Set<E>

A HashSet that uses == to determine of two entries are equal.

File-location:
IdentityHashSet
Last check-in date:
2009-08-04 14:35:53 +0200 (Di, 04. Aug 2009) by swismer for revision 3875

Constructor Summary
IdentityHashSet()
           
 
Method Summary
 boolean add(E element)
           
 boolean addAll(Collection<? extends E> elements)
           
 void clear()
           
 boolean contains(Object element)
           
 boolean containsAll(Collection<?> elements)
           
 boolean isEmpty()
           
 Iterator<E> iterator()
           
 boolean remove(Object element)
           
 boolean removeAll(Collection<?> elements)
           
 boolean retainAll(Collection<?> elements)
           
 int size()
           
 Object[] toArray()
           
<T> T[]
toArray(T[] dummy)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
equals, hashCode
 

Constructor Detail

IdentityHashSet

public IdentityHashSet()
Method Detail

add

public boolean add(E element)
Specified by:
add in interface Collection<E>
Specified by:
add in interface Set<E>

addAll

public boolean addAll(Collection<? extends E> elements)
Specified by:
addAll in interface Collection<E>
Specified by:
addAll in interface Set<E>

clear

public void clear()
Specified by:
clear in interface Collection<E>
Specified by:
clear in interface Set<E>

contains

public boolean contains(Object element)
Specified by:
contains in interface Collection<E>
Specified by:
contains in interface Set<E>

containsAll

public boolean containsAll(Collection<?> elements)
Specified by:
containsAll in interface Collection<E>
Specified by:
containsAll in interface Set<E>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<E>
Specified by:
isEmpty in interface Set<E>

iterator

public Iterator<E> iterator()
Specified by:
iterator in interface Iterable<E>
Specified by:
iterator in interface Collection<E>
Specified by:
iterator in interface Set<E>

remove

public boolean remove(Object element)
Specified by:
remove in interface Collection<E>
Specified by:
remove in interface Set<E>

removeAll

public boolean removeAll(Collection<?> elements)
Specified by:
removeAll in interface Collection<E>
Specified by:
removeAll in interface Set<E>

retainAll

public boolean retainAll(Collection<?> elements)
Specified by:
retainAll in interface Collection<E>
Specified by:
retainAll in interface Set<E>

size

public int size()
Specified by:
size in interface Collection<E>
Specified by:
size in interface Set<E>

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection<E>
Specified by:
toArray in interface Set<E>

toArray

public <T> T[] toArray(T[] dummy)
Specified by:
toArray in interface Collection<E>
Specified by:
toArray in interface Set<E>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2011 ELCA. All Rights Reserved.