public static class RecordComponentList.ForTokens extends RecordComponentList.AbstractBase<RecordComponentDescription.InDefinedShape>
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 |
---|
ForTokens(TypeDescription typeDescription,
List<? extends RecordComponentDescription.Token> tokens)
Creates a new list of record components that are described as tokens.
|
ForTokens(TypeDescription typeDescription,
RecordComponentDescription.Token... token)
Creates a new list of record components that are described as tokens.
|
Modifier and Type | Method and Description |
---|---|
RecordComponentDescription.InDefinedShape |
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 ForTokens(TypeDescription typeDescription, RecordComponentDescription.Token... token)
typeDescription
- The record component's declaring type.token
- The list of represented tokens.public ForTokens(TypeDescription typeDescription, List<? extends RecordComponentDescription.Token> tokens)
typeDescription
- The record component's declaring type.tokens
- The list of represented tokens.public RecordComponentDescription.InDefinedShape get(int index)
get
in interface List<RecordComponentDescription.InDefinedShape>
get
in class AbstractList<RecordComponentDescription.InDefinedShape>
public int size()
size
in interface Collection<RecordComponentDescription.InDefinedShape>
size
in interface List<RecordComponentDescription.InDefinedShape>
size
in class AbstractCollection<RecordComponentDescription.InDefinedShape>
Copyright © 2014–1970. All rights reserved.