クラス FunctionIterator<T,V>

java.lang.ObjectSE
org.springframework.integration.util.FunctionIterator<T,V>
型パラメーター:
T - 受信イテレータ要素型。
V - 送信要素型。
実装されたすべてのインターフェース:
AutoCloseableSEIteratorSE<V>CloseableIterator<V>

public class FunctionIterator<T,V> extends ObjectSE implements CloseableIterator<V>
各アイテムをターゲット iterator から next() に function を適用する新しいオブジェクトに変換する IteratorSE 実装。
導入:
4.1
作成者:
Artem Bilan, Ruslan Stelmachenko, Gary Russell
  • コンストラクターの詳細

    • FunctionIterator

      public FunctionIterator(IterableSE<T> iterable, FunctionSE<? super T,? extends V> function)
      提供された iterable と関数を使用してインスタンスを構築します。
      パラメーター:
      iterable - 反復可能。
      function - 関数。
    • FunctionIterator

      public FunctionIterator(@Nullable AutoCloseableSE closeable, IterableSE<T> iterable, FunctionSE<? super T,? extends V> function)
      提供されたルートオブジェクト、反復可能および関数を使用してインスタンスを構築します。
      パラメーター:
      closeable - 反復が完了したときに閉じる AutoCloseableSE
      iterable - 反復可能。
      function - 関数。
      導入:
      5.0.7
    • FunctionIterator

      public FunctionIterator(IteratorSE<T> newIterator, FunctionSE<? super T,? extends V> function)
      提供されたイテレータと関数を使用してインスタンスを構築します。
      パラメーター:
      newIterator - イテレータ。
      function - 関数。
    • FunctionIterator

      public FunctionIterator(@Nullable AutoCloseableSE closeable, IteratorSE<T> newIterator, FunctionSE<? super T,? extends V> function)
      提供されたルートオブジェクト、イテレータ、関数を使用してインスタンスを構築します。
      パラメーター:
      closeable - 反復が完了したときに閉じる AutoCloseableSE
      newIterator - イテレータ。
      function - 関数。
      導入:
      5.0.7
  • メソッドの詳細