org.omnaest.utils.structure.collection.set
Class SetAbstract<E>

java.lang.Object
  extended by org.omnaest.utils.structure.collection.CollectionAbstract<E>
      extended by org.omnaest.utils.structure.collection.set.SetAbstract<E>
Type Parameters:
E -
All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>, Set<E>
Direct Known Subclasses:
ListToSetAdapter, MapBasedSet, SetComposite

public abstract class SetAbstract<E>
extends CollectionAbstract<E>
implements Set<E>

Abstract implementation of a Set. Reduces the Set interface to the very needed methods.

Author:
Omnaest
See Also:
Set, CollectionAbstract, Serialized Form

Constructor Summary
SetAbstract()
           
 
Method Summary
 boolean equals(Object object)
           
 int hashCode()
           
 
Methods inherited from class org.omnaest.utils.structure.collection.CollectionAbstract
addAll, clear, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

SetAbstract

public SetAbstract()
Method Detail

hashCode

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

equals

public boolean equals(Object object)
Specified by:
equals in interface Collection<E>
Specified by:
equals in interface Set<E>
Overrides:
equals in class CollectionAbstract<E>


Copyright © 2013. All Rights Reserved.