Class TypeList

All Implemented Interfaces:
IReadOnlyList<Type<?>>, Iterable<Type<?>>, Collection<Type<?>>, List<Type<?>>, RandomAccess, SequencedCollection<Type<?>>

public class TypeList extends MemberList<Type<?>>
  • Field Details

    • EMPTY

      private static final TypeList EMPTY
  • Constructor Details

    • TypeList

      public TypeList(Type... elements)
    • TypeList

      public TypeList(List<? extends Type<?>> elements)
    • TypeList

      public TypeList(Type[] elements, int offset, int length)
  • Method Details

    • empty

      public static TypeList empty()
    • combine

      public static TypeList combine(TypeList first, TypeList second)
    • of

      public static TypeList of(Type... types)
    • of

      public static TypeList of(List<? extends Type<?>> types)
    • combineCore

      private static TypeList combineCore(TypeList first, TypeList second, boolean merge)
    • subList

      @NotNull public TypeList subList(int fromIndex, int toIndex)
      Specified by:
      subList in interface List<Type<?>>
      Overrides:
      subList in class MemberList<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 interface Collection<Type<?>>
      Specified by:
      hashCode in interface List<Type<?>>
      Overrides:
      hashCode in class ReadOnlyList<Type<?>>
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface Collection<Type<?>>
      Specified by:
      equals in interface List<Type<?>>
      Overrides:
      equals in class ReadOnlyList<Type<?>>
    • equals

      public boolean equals(TypeList other)