Class FixedListSet<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.ListSet<T>
-
- net.ssehub.easy.instantiation.core.model.vilTypes.FixedListSet<T>
-
- Type Parameters:
T- the element type
- All Implemented Interfaces:
java.lang.Iterable<T>,Collection<T>,IStringValueProvider,IVilGenericType,IVilType,Set<T>
public class FixedListSet<T> extends ListSet<T>
Implements an array wrapper for the VIL set 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 FixedListSet(java.util.List<T> list, TypeDescriptor<?>... params)Creates a new array collection wrapper.FixedListSet(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.ListSet
add, apply, asSequence, asSet, cloneCollection, closure, collect, collectNested, difference, empty, excluding, flatten, including, intersection, isEquals, projectSingle, reject, remove, select, selectByKind, selectByType, sortedBy, symmetricDifference, toSequence, 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.Set
toMappedSet
-
-
-
-
Constructor Detail
-
FixedListSet
public FixedListSet(java.util.List<T> list, TypeRegistry registry, java.lang.Class<?>... params)
Creates a new array collection wrapper.- Parameters:
list- the wrapped listregistry- the registry to convertparamsparams- the type parameter characterizing
-
FixedListSet
public FixedListSet(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 classAbstractListWrapper<T>- Returns:
trueif a value provider may reorder the sequence,falseelse
-
-