org.apache.activemq.apollo.util
Class HashList<E>

java.lang.Object
  extended by org.apache.activemq.apollo.util.HashList<E>

public class HashList<E>
extends java.lang.Object


Constructor Summary
HashList()
           
 
Method Summary
 boolean add(E o)
          Adds an object to the list if it is not already present.
 boolean contains(java.lang.Object o)
           
 java.lang.Object get(E o)
           
 java.util.Iterator<E> iterator()
           
 boolean remove(E o)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashList

public HashList()
Method Detail

add

public final boolean add(E o)
Adds an object to the list if it is not already present.

Parameters:
o - True if the object was added.

remove

public final boolean remove(E o)

get

public final java.lang.Object get(E o)

size

public final int size()

contains

public final boolean contains(java.lang.Object o)

iterator

public final java.util.Iterator<E> iterator()
Returns:
Returns a head to tail iterator of the underlying list.


Copyright © 2005-2011 The Apache Software Foundation. All Rights Reserved.