Package org.apache.torque.util
Klasse UniqueColumnList
- Alle implementierten Schnittstellen:
Serializable,Cloneable,Iterable<Column>,Collection<Column>,List<Column>,RandomAccess
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:
-
Feldübersicht
Von Klasse geerbte Felder java.util.AbstractList
modCount -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungConstructs an empty UniqueList.Copy-constructor. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanAdds a Column to the list, if no column with the same SQL Expression is not already contained.booleancontainsSqlExpression(Column column) Checks if this list already contains a column with the same SQL expression.Von Klasse geerbte Methoden java.util.ArrayList
add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeVon Klasse geerbte Methoden java.util.AbstractCollection
containsAll, toStringVon Klasse geerbte Methoden java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden java.util.Collection
parallelStream, stream, toArrayVon Schnittstelle geerbte Methoden java.util.List
containsAll
-
Konstruktordetails
-
UniqueColumnList
public UniqueColumnList()Constructs an empty UniqueList. -
UniqueColumnList
Copy-constructor. Creates a shallow copy of an UniqueList.- Parameter:
list- the uniqueList to copy
-
-
Methodendetails
-
add
Adds a Column to the list, if no column with the same SQL Expression is not already contained.- Angegeben von:
addin SchnittstelleCollection<Column>- Angegeben von:
addin SchnittstelleList<Column>- Setzt außer Kraft:
addin KlasseArrayList<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
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.
-