Schnittstelle ArrayMappable<E>

Typparameter:
E - is the type of the elements a ArrayMappable.
Alle bekannten Unterschnittstellen:
IArrayList<E>, ICachingContainer<E>, IContainer<E>, ILinkedList<E>, IMatrix<E>, ISqlRecord
Alle bekannten Implementierungsklassen:
ArrayList, ArrayView, CachingContainer, Container, ContainerView, ContainerView, FilterContainerView, ImmutableList, IterableView, LinkedList, Matrix, MatrixColumn, MatrixRow, MultiContainerView, SqlRecord

public interface ArrayMappable<E>
Version:
2024-11-12
Autor:
Silvan Wyss
  • Methodendetails Linksymbol

    • toArray Linksymbol

      Object[] toArray()
      Gibt zurück:
      a new array with the elements of the current ArrayMappable.
    • toByteArray Linksymbol

      byte[] toByteArray(Function<E,Byte> byteMapper)
      Parameter:
      byteMapper -
      Gibt zurück:
      a new array with the bytes the given byteMapper maps from the elements of the current ArrayMappable. Maps null elements to 0.
      Löst aus:
      RuntimeException - if the given byteMapper is null.
    • toCharArray Linksymbol

      char[] toCharArray(Function<E,Character> charMapper)
      Parameter:
      charMapper -
      Gibt zurück:
      a new array with the chars the given charMapper maps from the elements of the current ArrayMappable. Maps null elements to a space.
      Löst aus:
      RuntimeException - if the given charMapper is null.
    • toDoubleArray Linksymbol

      double[] toDoubleArray(ToDoubleFunction<E> doubleMapper)
      Parameter:
      doubleMapper -
      Gibt zurück:
      a new array with the doubles the given doubleMapper maps from the elements of the current ArrayMappable. Maps null elements to 0.0.
      Löst aus:
      RuntimeException - if the given doubleMapper is null.
    • toIntArray Linksymbol

      int[] toIntArray(ToIntFunction<E> intMapper)
      Parameter:
      intMapper -
      Gibt zurück:
      a new array with the ints the given intMapper maps from the elements of the current ArrayMappable. Maps null elements to 0. Maps null elements to 0.
      Löst aus:
      RuntimeException - if the given intMapper is null.
    • toLongArray Linksymbol

      long[] toLongArray(ToLongFunction<E> longMapper)
      Parameter:
      longMapper -
      Gibt zurück:
      a new array with the longs the given longMapper maps from the elements of the current ArrayMappable. Maps null elements to 0.
      Löst aus:
      RuntimeException - if the given longMapper is null.
    • toStringArray Linksymbol

      String[] toStringArray()
      Gibt zurück:
      a new array with the String representations of the elements of the current ArrayMappable.