com.github.libxjava.util
Class BasicHashSet

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

public class BasicHashSet
extends HashSet

Version:
libxjava-cdc - 0.1
Author:
Marcel Patzlaff
See Also:
Serialized Form

Constructor Summary
BasicHashSet()
           
BasicHashSet(int initialCapacity)
           
 
Method Summary
 boolean add(Object o)
           
 void clear()
           
 boolean contains(Object o)
           
 BasicEnumeration 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(Object o)
Specified by:
add in interface Collection
Specified by:
add in interface Set
Overrides:
add in class HashSet

clear

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

contains

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

enumeration

public BasicEnumeration enumeration()

isEmpty

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

remove

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

size

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

toString

public String toString()
Overrides:
toString in class AbstractCollection


Copyright © 2010 Marcel Patzlaff. All Rights Reserved.