Interface KeyValues.KeyValuesConsumer<V>

Type Parameters:
V - storage
Enclosing interface:
KeyValues

public static interface KeyValues.KeyValuesConsumer<V>
A special consumer that avoids lambda garbage.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    accept(KeyValues kvs, String k, @Nullable String v, int index, V storage)
    Accepts the KeyValues at the current key and value.
  • Method Details

    • accept

      int accept(KeyValues kvs, String k, @Nullable String v, int index, V storage)
      Accepts the KeyValues at the current key and value.
      Parameters:
      kvs - kvs.
      k - key.
      v - value.
      index - counter.
      storage - storage like a StringBuidler.
      Returns:
      custom user count that will be accumulated. If one was returned for each call then the result would be the total count.