Enum Class ArrayListSupplier

java.lang.Object
java.lang.Enum<ArrayListSupplier>
io.reactivex.rxjava3.internal.util.ArrayListSupplier
All Implemented Interfaces:
Function<Object,List<Object>>, Supplier<List<Object>>, Serializable, Comparable<ArrayListSupplier>, Constable

public enum ArrayListSupplier extends Enum<ArrayListSupplier> implements Supplier<List<Object>>, Function<Object,List<Object>>
  • Enum Constant Details

  • Constructor Details

    • ArrayListSupplier

      private ArrayListSupplier()
  • Method Details

    • values

      public static ArrayListSupplier[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ArrayListSupplier valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • asSupplier

      public static <T> Supplier<List<T>> asSupplier()
    • asFunction

      public static <T, O> Function<O,List<T>> asFunction()
    • get

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

      public List<Object> apply(Object o)
      Description copied from interface: Function
      Apply some calculation to the input value and return some other value.
      Specified by:
      apply in interface Function<Object,List<Object>>
      Parameters:
      o - the input value
      Returns:
      the output value