Interface EasyStream.Builder<T>

Type Parameters:
T - 对象类型
All Superinterfaces:
Builder<EasyStream<T>>, Consumer<T>, Serializable
Enclosing class:
EasyStream<T>

public static interface EasyStream.Builder<T> extends Consumer<T>, Builder<EasyStream<T>>
建造者
  • Method Summary

    Modifier and Type
    Method
    Description
    add(T t)
    Adds an element to the unwrap being built.

    Methods inherited from interface org.miaixz.bus.core.Builder

    build

    Methods inherited from interface java.util.function.Consumer

    accept, andThen
  • Method Details

    • add

      default EasyStream.Builder<T> add(T t)
      Adds an element to the unwrap being built.
      Parameters:
      t - the element to add
      Returns:
      this builder
      Throws:
      IllegalStateException - if the builder has already transitioned to the built state