Class BeanTypeList
- All Implemented Interfaces:
Constable,Iterable<TypeMirror>,Collection<TypeMirror>,List<TypeMirror>,SequencedCollection<TypeMirror>
An immutable
AbstractList of TypeMirrors that contains only legal bean types, sorted in a specific manner.- Author:
- Laird Nelson
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Method Summary
Modifier and TypeMethodDescriptionfinal Optional<? extends ConstantDesc> final TypeMirrorget(int index) final intReturns the index of the first interface type thisBeanTypeListcontains, or a negative value if it contains no interface types.final booleanisEmpty()static final BeanTypeListof(Domain domain, Collection<? extends TypeMirror> types) Returns a non-nullBeanTypeListsuitable for the supplied arguments.final booleanReturnstrueif and only if thisBeanTypeListis proxiable.final intsize()Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
Method Details
-
get
- Specified by:
getin interfaceList<TypeMirror>- Specified by:
getin classAbstractList<TypeMirror>
-
interfaceIndex
Returns the index of the first interface type thisBeanTypeListcontains, or a negative value if it contains no interface types.- Returns:
- the index of the first interface type this
BeanTypeListcontains, or a negative value if it contains no interface types
-
isEmpty
- Specified by:
isEmptyin interfaceCollection<TypeMirror>- Specified by:
isEmptyin interfaceList<TypeMirror>- Overrides:
isEmptyin classAbstractCollection<TypeMirror>
-
describeConstable
- Specified by:
describeConstablein interfaceConstable
-
proxiable
Returnstrueif and only if thisBeanTypeListis proxiable.- Returns:
trueif and only if thisBeanTypeListis proxiable- See Also:
- External Specifications
-
size
- Specified by:
sizein interfaceCollection<TypeMirror>- Specified by:
sizein interfaceList<TypeMirror>- Specified by:
sizein classAbstractCollection<TypeMirror>
-
of
Returns a non-nullBeanTypeListsuitable for the supplied arguments.- Parameters:
domain- aDomainthat may be used to determine subtype relationships; may benulliftypesis itself aBeanTypeListtypes- a non-nullCollectionofTypeMirrors; must not benull- Returns:
- a non-
nullBeanTypeList - Throws:
NullPointerException- iftypesisnull, or iftypesis not aBeanTypeListanddomainisnull
-