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

java.lang.Object
  extended by org.omnaest.utils.structure.collection.CollectionAbstract<E>
      extended by org.omnaest.utils.structure.collection.set.SetAbstract<E>
          extended by org.omnaest.utils.structure.collection.list.adapter.ListToSetAdapter<E>
              extended by org.omnaest.utils.structure.collection.set.IdentityArrayListBasedSet<E>
Type Parameters:
E -
All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>, Set<E>

public class IdentityArrayListBasedSet<E>
extends ListToSetAdapter<E>

Ordered Set implementation using the IdentityArrayList as backing structure. This results in the identity comparison used for ListToSetAdapter.contains(Object) and other methods resolving objects by references.

Author:
Omnaest
See Also:
Serialized Form

Constructor Summary
IdentityArrayListBasedSet()
           
IdentityArrayListBasedSet(Collection<E> collection)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class org.omnaest.utils.structure.collection.list.adapter.ListToSetAdapter
add, contains, iterator, remove, size
 
Methods inherited from class org.omnaest.utils.structure.collection.set.SetAbstract
equals, hashCode
 
Methods inherited from class org.omnaest.utils.structure.collection.CollectionAbstract
addAll, clear, containsAll, isEmpty, removeAll, retainAll, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, clear, containsAll, isEmpty, removeAll, retainAll, toArray, toArray
 

Constructor Detail

IdentityArrayListBasedSet

public IdentityArrayListBasedSet()

IdentityArrayListBasedSet

public IdentityArrayListBasedSet(Collection<E> collection)
Parameters:
collection -
Method Detail

toString

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


Copyright © 2013. All Rights Reserved.