org.hudsonci.maven.model
Class UniqueList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
org.hudsonci.maven.model.UniqueList<E>
- All Implemented Interfaces:
- Iterable<E>, Collection<E>, List<E>
public class UniqueList<E>
- extends AbstractList<E>
A List which only allows unique elements; similar to Set but typed as List.
- Since:
- 2.1.0
- Author:
- Jason Dillon
UniqueList
public UniqueList(List<E> delegate)
UniqueList
public UniqueList()
contains
public boolean contains(Object obj)
- Specified by:
contains in interface Collection<E>- Specified by:
contains in interface List<E>- Overrides:
contains in class AbstractCollection<E>
get
public E get(int index)
- Specified by:
get in interface List<E>- Specified by:
get in class AbstractList<E>
size
public int size()
- Specified by:
size in interface Collection<E>- Specified by:
size in interface List<E>- Specified by:
size in class AbstractCollection<E>
set
public E set(int index,
E element)
- Specified by:
set in interface List<E>- Overrides:
set in class AbstractList<E>
add
public void add(int index,
E element)
- Specified by:
add in interface List<E>- Overrides:
add in class AbstractList<E>
remove
public E remove(int index)
- Specified by:
remove in interface List<E>- Overrides:
remove in class AbstractList<E>
hashCode
public int hashCode()
- Specified by:
hashCode in interface Collection<E>- Specified by:
hashCode in interface List<E>- Overrides:
hashCode in class AbstractList<E>
equals
public boolean equals(Object obj)
- Specified by:
equals in interface Collection<E>- Specified by:
equals in interface List<E>- Overrides:
equals in class AbstractList<E>
toString
public String toString()
- Overrides:
toString in class AbstractCollection<E>
Copyright © 2004-2011 Hudson. All Rights Reserved.