Package com.strobel.reflection
Class TypeList
- All Implemented Interfaces:
IReadOnlyList<Type<?>>
,Iterable<Type<?>>
,Collection<Type<?>>
,List<Type<?>>
,RandomAccess
,SequencedCollection<Type<?>>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeList
private static TypeList
combineCore
(TypeList first, TypeList second, boolean merge) final boolean
containsGenericParameter
(Type<?> genericParameter) final boolean
final boolean
containsSubTypeOf
(Type<?> type) final boolean
containsSuperTypeOf
(Type<?> type) final boolean
containsTypeAssignableFrom
(Type<?> type) static TypeList
empty()
boolean
boolean
final TypeList
int
hashCode()
final boolean
isAssignableFrom
(TypeList types) final boolean
isEquivalentTo
(TypeList types) static TypeList
static TypeList
subList
(int fromIndex, int toIndex) Methods inherited from class com.strobel.reflection.MemberList
combine, getMemberType
Methods inherited from class com.strobel.core.ReadOnlyList
add, add, addAll, addAll, clear, contains, containsAll, containsAll, emptyList, get, getElements, getOffset, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, newInstance, remove, remove, removeAll, retainAll, set, size, subListRangeCheck, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Field Details
-
EMPTY
-
-
Constructor Details
-
TypeList
-
TypeList
-
TypeList
-
-
Method Details
-
empty
-
combine
-
of
-
of
-
combineCore
-
subList
-
containsGenericParameters
public final boolean containsGenericParameters() -
containsGenericParameter
-
containsSubTypeOf
-
containsSuperTypeOf
-
containsTypeAssignableFrom
-
isEquivalentTo
-
isAssignableFrom
-
getErasedTypes
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<Type<?>>
- Specified by:
hashCode
in interfaceList<Type<?>>
- Overrides:
hashCode
in classReadOnlyList<Type<?>>
-
equals
- Specified by:
equals
in interfaceCollection<Type<?>>
- Specified by:
equals
in interfaceList<Type<?>>
- Overrides:
equals
in classReadOnlyList<Type<?>>
-
equals
-