Class TypeList.Explicit

    • Field Detail

      • typeDescriptions

        private final java.util.List<? extends TypeDescription> typeDescriptions
        The list of type descriptions this list represents.
    • 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

      • of

        public static TypeList of​(java.util.List<? extends JavaConstant> constants)
        Returns a list of types of the supplied Java constants.
        Parameters:
        constants - The Java constants to represent as type descriptions.
        Returns:
        A list of type descriptions for the supplied constants.
      • 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>