Package com.strobel.reflection
Class TypeList
- java.lang.Object
-
- com.strobel.core.ReadOnlyList<T>
-
- com.strobel.reflection.MemberList<Type<?>>
-
- com.strobel.reflection.TypeList
-
- All Implemented Interfaces:
IReadOnlyList<Type<?>>
,java.lang.Iterable<Type<?>>
,java.util.Collection<Type<?>>
,java.util.List<Type<?>>
,java.util.RandomAccess
public class TypeList extends MemberList<Type<?>>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TypeList
combine(TypeList first, TypeList second)
private static TypeList
combineCore(TypeList first, TypeList second, boolean merge)
boolean
containsGenericParameter(Type<?> genericParameter)
boolean
containsGenericParameters()
boolean
containsSubTypeOf(Type<?> type)
boolean
containsSuperTypeOf(Type<?> type)
boolean
containsTypeAssignableFrom(Type<?> type)
static TypeList
empty()
boolean
equals(TypeList other)
boolean
equals(java.lang.Object obj)
TypeList
getErasedTypes()
int
hashCode()
boolean
isAssignableFrom(TypeList types)
boolean
isEquivalentTo(TypeList types)
static TypeList
of(Type... types)
static TypeList
of(java.util.List<? extends Type<?>> types)
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
-
-
-
-
Field Detail
-
EMPTY
private static final TypeList EMPTY
-
-
Method Detail
-
empty
public static TypeList empty()
-
subList
@NotNull public TypeList subList(int fromIndex, int toIndex)
- Specified by:
subList
in interfacejava.util.List<Type<?>>
- Overrides:
subList
in classMemberList<Type<?>>
-
containsGenericParameters
public final boolean containsGenericParameters()
-
containsGenericParameter
public final boolean containsGenericParameter(Type<?> genericParameter)
-
containsSubTypeOf
public final boolean containsSubTypeOf(Type<?> type)
-
containsSuperTypeOf
public final boolean containsSuperTypeOf(Type<?> type)
-
containsTypeAssignableFrom
public final boolean containsTypeAssignableFrom(Type<?> type)
-
isEquivalentTo
public final boolean isEquivalentTo(TypeList types)
-
isAssignableFrom
public final boolean isAssignableFrom(TypeList types)
-
getErasedTypes
public final TypeList getErasedTypes()
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.util.Collection<Type<?>>
- Specified by:
hashCode
in interfacejava.util.List<Type<?>>
- Overrides:
hashCode
in classReadOnlyList<Type<?>>
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacejava.util.Collection<Type<?>>
- Specified by:
equals
in interfacejava.util.List<Type<?>>
- Overrides:
equals
in classReadOnlyList<Type<?>>
-
equals
public boolean equals(TypeList other)
-
-