Interface ISimpleIterableMapper

All Known Implementing Classes:
SimpleIterableMapper

public interface ISimpleIterableMapper
A ISimpleIterableMapper provides functions to handle arrays.
Author:
Silvan Wyss
  • Method Details

    • toIterable

      Iterable<Byte> toIterable(byte[] bytes)
      Parameters:
      bytes -
      Returns:
      a new Iterable with the given bytes
      Throws:
      RuntimeException - if the given bytes is null
    • toIterable

      Iterable<Double> toIterable(double[] values)
      Parameters:
      values -
      Returns:
      a new Iterable with the given values
      Throws:
      RuntimeException - if the given values is null
    • toIterable

      <E> Iterable<E> toIterable(E[] elements)
      Type Parameters:
      E - the type of the given elements
      Parameters:
      elements -
      Returns:
      a new Iterable with the given elements
      Throws:
      RuntimeException - if the given elements is null
    • toIterable

      Iterable<Long> toIterable(int[] values)
      Parameters:
      values -
      Returns:
      a new Iterable with the given values
      Throws:
      RuntimeException - if the given values is null
    • toIterable

      Iterable<Long> toIterable(long[] values)
      Parameters:
      values -
      Returns:
      a new Iterable with the given values
      Throws:
      RuntimeException - if the given values is null