Class InfoList<T extends HasName>

    • Constructor Summary

      Constructors 
      Constructor Description
      InfoList()
      Constructor.
      InfoList​(int sizeHint)
      Constructor.
      InfoList​(java.util.Collection<T> infoCollection)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.util.List<java.lang.String> getAsStrings()
      Get the String representations of all items in this list, by calling toString() on each item in the list.
      java.util.List<java.lang.String> getAsStringsWithSimpleNames()
      Get the String representations of all items in this list, using only simple names of any named classes, by calling ScanResultObject#toStringWithSimpleNames() if the object is a subclass of ScanResultObject (e.g.
      java.util.List<java.lang.String> getNames()
      Get the names of all items in this list, by calling getName() on each item in the list.
      int hashCode()  
      • Methods inherited from class java.util.ArrayList

        clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, lastIndexOf, listIterator, removeIf, removeRange, replaceAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
      • Methods inherited from class java.util.AbstractCollection

        containsAll, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, stream, toArray
      • Methods inherited from interface java.util.List

        containsAll
    • Field Detail

    • Constructor Detail

      • InfoList

        InfoList()
        Constructor.
      • InfoList

        InfoList​(int sizeHint)
        Constructor.
        Parameters:
        sizeHint - the size hint
      • InfoList

        InfoList​(java.util.Collection<T> infoCollection)
        Constructor.
        Parameters:
        infoCollection - the initial elements.
    • Method Detail

      • getNames

        public java.util.List<java.lang.String> getNames()
        Get the names of all items in this list, by calling getName() on each item in the list.
        Returns:
        The names of all items in this list, by calling getName() on each item in the list.
      • getAsStrings

        public java.util.List<java.lang.String> getAsStrings()
        Get the String representations of all items in this list, by calling toString() on each item in the list.
        Returns:
        The String representations of all items in this list, by calling toString() on each item in the list.
      • getAsStringsWithSimpleNames

        public java.util.List<java.lang.String> getAsStringsWithSimpleNames()
        Get the String representations of all items in this list, using only simple names of any named classes, by calling ScanResultObject#toStringWithSimpleNames() if the object is a subclass of ScanResultObject (e.g. ClassInfo, MethodInfo or FieldInfo object), otherwise calling toString(), for each item in the list.
        Returns:
        The String representations of all items in this list, using only the simple names of any named classes.