Class FixedListSequence<T>
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.vilTypes.AbstractCollectionWrapper<T>
-
- net.ssehub.easy.instantiation.core.model.vilTypes.AbstractListWrapper<T>
-
- net.ssehub.easy.instantiation.core.model.vilTypes.ListSequence<T>
-
- net.ssehub.easy.instantiation.core.model.vilTypes.FixedListSequence<T>
-
- Type Parameters:
T- the element type
- All Implemented Interfaces:
java.lang.Iterable<T>,Collection<T>,IStringValueProvider,IVilGenericType,IVilType,Sequence<T>
public class FixedListSequence<T> extends ListSequence<T>
Implements an array wrapper for the VIL sequence type which does not allow sequence reorderingallowSequenceAdjustment().- Author:
- Holger Eichelberger
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.ssehub.easy.instantiation.core.model.vilTypes.IStringValueProvider
IStringValueProvider.StringComparator
-
-
Field Summary
-
Fields inherited from class net.ssehub.easy.instantiation.core.model.vilTypes.AbstractCollectionWrapper
NUMBER_COMPARATOR
-
-
Constructor Summary
Constructors Constructor Description FixedListSequence(java.util.List<T> list, TypeDescriptor<?>... params)Creates a new array collection wrapper.FixedListSequence(java.util.List<T> list, TypeRegistry registry, java.lang.Class<?>... params)Creates a new array collection wrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowSequenceAdjustment()Returns whether aIStringValueProvidermay reorder the sequence of this collection for (test) output.-
Methods inherited from class net.ssehub.easy.instantiation.core.model.vilTypes.ListSequence
add, append, append, apply, asSequence, asSet, at, cloneCollection, closure, collect, collectNested, empty, excluding, first, flatten, get, hasDuplicates, indexOf, insertAt, isEquals, isSubsequenceOf, joinfields, last, mapAny, mapSequence, overlaps, prepend, reject, remove, removeAll, removeAt, removeFirst, removeLast, revert, select, selectByKind, selectByType, sortAlpha, sortedBy, subSequence, toSet, typeReject, union
-
Methods inherited from class net.ssehub.easy.instantiation.core.model.vilTypes.AbstractListWrapper
clear, equals, getGenericParameter, getGenericParameterCount, getGenericParameterType, getList, getStringValue, getType, hashCode, iterator, removeDuplicates, size, toMappedList, toMappedSet, toString
-
Methods inherited from class net.ssehub.easy.instantiation.core.model.vilTypes.AbstractCollectionWrapper
aggregate, any, any, append, apply, avg, closure, collect, collect, constructType, containsAll, count, equals, excludes, excludesAll, excluding, exists, exists, flatten, forAll, forAll, getFlattenedParams, includes, includesAll, including, intersection, isAcyclic, isAcyclic, isEmpty, isNotEmpty, isUnique, isUnique, max, min, one, one, product, revertImpl, sameElements, select, select, selectByType, selectByType, sortAlphaImpl, sortImpl, sortImpl, sum, union
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.ssehub.easy.instantiation.core.model.vilTypes.Collection
any, avg, clear, count, excludes, excludesAll, exists, forAll, getGenericParameterCount, getGenericParameterType, includes, includesAll, isAcyclic, isEmpty, isNotEmpty, isUnique, iterator, max, min, one, product, size, sum
-
Methods inherited from interface net.ssehub.easy.instantiation.core.model.vilTypes.IStringValueProvider
getStringValue
-
Methods inherited from interface net.ssehub.easy.instantiation.core.model.vilTypes.IVilGenericType
getType
-
Methods inherited from interface net.ssehub.easy.instantiation.core.model.vilTypes.Sequence
toMappedList
-
-
-
-
Constructor Detail
-
FixedListSequence
public FixedListSequence(java.util.List<T> list, TypeRegistry registry, java.lang.Class<?>... params)
Creates a new array collection wrapper.- Parameters:
list- the wrapped listregistry- the type registry to convertparamsparams- the type parameter characterizing
-
FixedListSequence
public FixedListSequence(java.util.List<T> list, TypeDescriptor<?>... params)
Creates a new array collection wrapper.- Parameters:
list- the wrapped listparams- the type parameter characterizing
-
-
Method Detail
-
allowSequenceAdjustment
public boolean allowSequenceAdjustment()
Description copied from interface:CollectionReturns whether aIStringValueProvidermay reorder the sequence of this collection for (test) output.- Specified by:
allowSequenceAdjustmentin interfaceCollection<T>- Overrides:
allowSequenceAdjustmentin classListSequence<T>- Returns:
trueif a value provider may reorder the sequence,falseelse
-
-