Class MappingElementList
java.lang.Object
java.util.AbstractCollection<MappingElementIF>
java.util.AbstractList<MappingElementIF>
java.util.ArrayList<MappingElementIF>
de.mid.innovator.m2msdk.model.transformation.MappingElementList
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<MappingElementIF>,Collection<MappingElementIF>,List<MappingElementIF>,RandomAccess,SequencedCollection<MappingElementIF>
List of mapping elements.
- Version:
- 10.1.1
- Author:
- jmback
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMappingElementList(int size) MappingElementList(MappingElementList elements) -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(MappingElementIF element) booleanaddAll(Collection<? extends MappingElementIF> coll) booleanbooleanbooleanaddUnique(MappingElementIF iElem) Add the element to the list, but only if it is not already in the list.booleanaddUnique(MappingElementList elems) Add the elements to the list, but only if they are not already in the list.booleancheckCardinality(de.mid.innovator.model.common.Cardinality cardinality) booleancontains(MappingElementIF iElem) getFirst()getLast()static MappingElementListChecks if input list is null.booleanremoveAll(MappingElementList elems) booleanbooleanretainAll(Collection<?> c) voidset(MappingElementList elements) subList(int fromIndex, int toIndex) toString()Methods inherited from class java.util.ArrayList
add, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, replaceAll, set, size, sort, spliterator, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAllMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll, reversed
-
Constructor Details
-
MappingElementList
-
MappingElementList
-
MappingElementList
public MappingElementList() -
MappingElementList
-
MappingElementList
public MappingElementList(int size)
-
-
Method Details
-
addAll
- Specified by:
addAllin interfaceCollection<MappingElementIF>- Specified by:
addAllin interfaceList<MappingElementIF>- Overrides:
addAllin classArrayList<MappingElementIF>
-
add
- Specified by:
addin interfaceCollection<MappingElementIF>- Specified by:
addin interfaceList<MappingElementIF>- Overrides:
addin classArrayList<MappingElementIF>
-
range
-
toString
- Overrides:
toStringin classAbstractCollection<MappingElementIF>
-
getDisplayValue
-
set
-
addUnique
Add the element to the list, but only if it is not already in the list.- Parameters:
iElem- element- Returns:
- true, if the element has been added.
-
addUnique
Add the elements to the list, but only if they are not already in the list.- Parameters:
elems- list of elements- Returns:
- true, if any element has been added.
-
getFirst
- Specified by:
getFirstin interfaceList<MappingElementIF>- Specified by:
getFirstin interfaceSequencedCollection<MappingElementIF>- Overrides:
getFirstin classArrayList<MappingElementIF>
-
getLast
- Specified by:
getLastin interfaceList<MappingElementIF>- Specified by:
getLastin interfaceSequencedCollection<MappingElementIF>- Overrides:
getLastin classArrayList<MappingElementIF>
-
retainAll
- Specified by:
retainAllin interfaceCollection<MappingElementIF>- Specified by:
retainAllin interfaceList<MappingElementIF>- Overrides:
retainAllin classArrayList<MappingElementIF>
-
retainAll
-
contains
-
removeAll
-
addNotNull
-
addAllNotNull
-
checkCardinality
public boolean checkCardinality(de.mid.innovator.model.common.Cardinality cardinality) -
listOrEmptyList
Checks if input list is null. If it not null, the input list is returned, otherwise and empty list is returned- Parameters:
list-- Returns:
- list or an empty list, but no null
-
subList
- Specified by:
subListin interfaceList<MappingElementIF>- Overrides:
subListin classArrayList<MappingElementIF>
-