Class RecordComponentInfoGenerator
- All Implemented Interfaces:
Iterable<RecordComponentInfo>, Collection<RecordComponentInfo>, List<RecordComponentInfo>
A list which wraps RecordComponentInternal objects with a RecordComponentInfo,
so that the declaring class' reference can be set. This lazy construction
is used to conserve memory usage.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClassInfoprivate final byte[]private final RecordComponentInternal[]Fields inherited from class AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionRecordComponentInfoGenerator(ClassInfo clazz, RecordComponentInternal[] recordComponents, byte[] positions) -
Method Summary
Methods inherited from class AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, streamMethods inherited from interface List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
recordComponents
-
clazz
-
positions
private final byte[] positions
-
-
Constructor Details
-
RecordComponentInfoGenerator
public RecordComponentInfoGenerator(ClassInfo clazz, RecordComponentInternal[] recordComponents, byte[] positions)
-
-
Method Details
-
get
- Specified by:
getin interfaceList<RecordComponentInfo>- Specified by:
getin classAbstractList<RecordComponentInfo>
-
size
public int size()- Specified by:
sizein interfaceCollection<RecordComponentInfo>- Specified by:
sizein interfaceList<RecordComponentInfo>- Specified by:
sizein classAbstractCollection<RecordComponentInfo>
-