public static class RecordComponentList.TypeSubstituting extends RecordComponentList.AbstractBase<RecordComponentDescription.InGenericShape>
RecordComponentList.AbstractBase<S extends RecordComponentDescription>, RecordComponentList.Empty<S extends RecordComponentDescription>, RecordComponentList.Explicit<S extends RecordComponentDescription>, RecordComponentList.ForLoadedRecordComponents, RecordComponentList.ForTokens, RecordComponentList.TypeSubstituting
modCount
Constructor and Description |
---|
TypeSubstituting(TypeDescription.Generic declaringType,
List<? extends RecordComponentDescription> recordComponentDescriptions,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a type substituting list of record component descriptions.
|
Modifier and Type | Method and Description |
---|---|
RecordComponentDescription.InGenericShape |
get(int index) |
int |
size() |
asDefined, asTokenList, asTypeList, wrap
filter, getOnly, subList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
filter, getOnly, subList
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public TypeSubstituting(TypeDescription.Generic declaringType, List<? extends RecordComponentDescription> recordComponentDescriptions, TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
declaringType
- The method that is declaring the transformed record components.recordComponentDescriptions
- The untransformed record components that are represented by this list.visitor
- The visitor to apply to the parameter types before returning them.public RecordComponentDescription.InGenericShape get(int index)
get
in interface List<RecordComponentDescription.InGenericShape>
get
in class AbstractList<RecordComponentDescription.InGenericShape>
public int size()
size
in interface Collection<RecordComponentDescription.InGenericShape>
size
in interface List<RecordComponentDescription.InGenericShape>
size
in class AbstractCollection<RecordComponentDescription.InGenericShape>
Copyright © 2014–2023. All rights reserved.