Class Functions.ArrayListCapacityCallable<T>

  • All Implemented Interfaces:
    Supplier<java.util.List<T>>
    Enclosing class:
    Functions

    static final class Functions.ArrayListCapacityCallable<T>
    extends java.lang.Object
    implements Supplier<java.util.List<T>>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int capacity  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<T> get()
      Produces a value or throws an exception.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • capacity

        final int capacity
    • Constructor Detail

      • ArrayListCapacityCallable

        ArrayListCapacityCallable​(int capacity)
    • Method Detail

      • get

        public java.util.List<T> get()
        Description copied from interface: Supplier
        Produces a value or throws an exception.
        Specified by:
        get in interface Supplier<T>
        Returns:
        the value produced