Klasse UniqueColumnList

Alle implementierten Schnittstellen:
Serializable, Cloneable, Iterable<Column>, Collection<Column>, List<Column>, RandomAccess

public class UniqueColumnList extends ArrayList<Column>
List with unique entries. UniqueList does not allow null nor will Columns with the same SQL expression be added twice.
Version:
$Id: UniqueColumnList.java 1839288 2018-08-27 09:48:33Z tv $
Autor:
Martin Poeschl
Siehe auch:
  • Konstruktordetails

    • UniqueColumnList

      public UniqueColumnList()
      Constructs an empty UniqueList.
    • UniqueColumnList

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

    • add

      public boolean add(Column column)
      Adds a Column to the list, if no column with the same SQL Expression is not already contained.
      Angegeben von:
      add in Schnittstelle Collection<Column>
      Angegeben von:
      add in Schnittstelle List<Column>
      Setzt außer Kraft:
      add in Klasse ArrayList<Column>
      Parameter:
      column - the Column to add, not null.
      Gibt zurück:
      true if the Object is added.
      Löst aus:
      NullPointerException - if column is null.
    • containsSqlExpression

      public boolean containsSqlExpression(Column column)
      Checks if this list already contains a column with the same SQL expression.
      Parameter:
      column - the column to check, not null.
      Gibt zurück:
      true if a column with the same Sql Expression is contained, false otherwise.