Class TypeList

    • Field Detail

      • EMPTY

        private static final TypeList EMPTY
    • Constructor Detail

      • TypeList

        public TypeList​(Type... elements)
      • TypeList

        public TypeList​(java.util.List<? extends Type<?>> elements)
      • TypeList

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

      • empty

        public static TypeList empty()
      • of

        public static TypeList of​(java.util.List<? extends Type<?>> types)
      • 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 java.util.Collection<Type<?>>
        Specified by:
        hashCode in interface java.util.List<Type<?>>
        Overrides:
        hashCode in class ReadOnlyList<Type<?>>
      • equals

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

        public boolean equals​(TypeList other)