com.github.libxjava.util
Class BasicHashSet<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet<E>
              extended by com.github.libxjava.util.BasicHashSet<E>
All Implemented Interfaces:
Serializable, Cloneable, Iterable<E>, Collection<E>, Set<E>
Direct Known Subclasses:
SerialisableHashSet

public class BasicHashSet<E>
extends HashSet<E>

Version:
libxjava-jse5 - 0.2
Author:
Marcel Patzlaff
See Also:
Serialized Form

Constructor Summary
BasicHashSet()
           
BasicHashSet(int initialCapacity)
           
 
Method Summary
 boolean add(E o)
           
 void clear()
           
 boolean contains(Object o)
           
 BasicEnumeration<E> enumeration()
           
 boolean isEmpty()
           
 boolean remove(Object o)
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.util.HashSet
clone, iterator
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
 

Constructor Detail

BasicHashSet

public BasicHashSet()

BasicHashSet

public BasicHashSet(int initialCapacity)
Method Detail

add

public boolean add(E o)
Specified by:
add in interface Collection<E>
Specified by:
add in interface Set<E>
Overrides:
add in class HashSet<E>

clear

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

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection<E>
Specified by:
contains in interface Set<E>
Overrides:
contains in class HashSet<E>

enumeration

public BasicEnumeration<E> enumeration()

isEmpty

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

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection<E>
Specified by:
remove in interface Set<E>
Overrides:
remove in class HashSet<E>

size

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

toString

public String toString()
Overrides:
toString in class AbstractCollection<E>


Copyright © 2010 Marcel Patzlaff. All Rights Reserved.