Klasse UniqueList<T>

Typparameter:
T - the type of objects contained in the List.
Alle implementierten Schnittstellen:
Serializable, Cloneable, Iterable<T>, Collection<T>, List<T>, RandomAccess

public class UniqueList<T> extends ArrayList<T>
List with unique entries. UniqueList does not allow null nor duplicates.
Version:
$Id: UniqueList.java 1839288 2018-08-27 09:48:33Z tv $
Autor:
Martin Poeschl
Siehe auch:
  • Konstruktordetails

    • UniqueList

      public UniqueList()
      Constructs an empty UniqueList.
    • UniqueList

      public UniqueList(UniqueList<T> list)
      Copy-constructor. Creates a shallow copy of an UniqueList.
      Parameter:
      list - the uniqueList to copy
  • Methodendetails

    • add

      public boolean add(T o)
      Adds an Object to the list.
      Angegeben von:
      add in Schnittstelle Collection<T>
      Angegeben von:
      add in Schnittstelle List<T>
      Setzt außer Kraft:
      add in Klasse ArrayList<T>
      Parameter:
      o - the Object to add
      Gibt zurück:
      true if the Object is added