Class TypeList.Explicit

    • Constructor Detail

      • Explicit

        public Explicit​(TypeDescription... typeDescription)
        Creates an immutable wrapper.
        Parameters:
        typeDescription - The list of types to be represented by this wrapper.
      • Explicit

        public Explicit​(java.util.List<? extends TypeDescription> typeDescriptions)
        Creates an immutable wrapper.
        Parameters:
        typeDescriptions - The list of types to be represented by this wrapper.
    • Method Detail

      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<TypeDescription>
        Specified by:
        size in interface java.util.List<TypeDescription>
        Specified by:
        size in class java.util.AbstractCollection<TypeDescription>
      • toInternalNames

        public java.lang.String[] toInternalNames()
        Description copied from interface: TypeList
        Returns a list of internal names of all types represented by this list.
        Returns:
        An array of all internal names or null if the list is empty.