Class TypeList.AbstractBase

All Implemented Interfaces:
Iterable<TypeDescription>, Collection<TypeDescription>, List<TypeDescription>, SequencedCollection<TypeDescription>, TypeList, FilterableList<TypeDescription,TypeList>
Direct Known Subclasses:
TypeList.Explicit, TypeList.ForLoadedTypes, TypePool.Default.LazyTypeDescription.LazyNestMemberList, TypePool.Default.LazyTypeDescription.LazyTypeList
Enclosing interface:
TypeList

public abstract static class TypeList.AbstractBase extends FilterableList.AbstractBase<TypeDescription,TypeList> implements TypeList
An abstract base implementation of a type list.
  • Constructor Details

    • AbstractBase

      public AbstractBase()
  • Method Details

    • wrap

      protected TypeList wrap(List<TypeDescription> values)
      Description copied from class: FilterableList.AbstractBase
      Represents a list of values as an instance of this instance's list type.
      Specified by:
      wrap in class FilterableList.AbstractBase<TypeDescription,TypeList>
      Parameters:
      values - The values to wrap in an instance of this list's type.
      Returns:
      A wrapped instance of the given values.
    • getStackSize

      public int getStackSize()
      Returns the sum of the size of all types contained in this list.
      Specified by:
      getStackSize in interface TypeList
      Returns:
      The sum of the size of all types contained in this list.
    • toInternalNames

      @MaybeNull public String[] toInternalNames()
      Returns a list of internal names of all types represented by this list.
      Specified by:
      toInternalNames in interface TypeList
      Returns:
      An array of all internal names or null if the list is empty.