Schnittstelle IMappableContainer<E>

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

public interface IMappableContainer<E>
Version:
2023-10-14
Autor:
Silvan Wyss
  • Methodendetails

    • to

      <E2> IContainer<E2> to(Function<E,E2> extractor)
      Typparameter:
      E2 - is the type of the elements the given extractor returns.
      Parameter:
      extractor -
      Gibt zurück:
      a new IMappableContainer with the elements the given extractor extracts from the elements of the current IMappableContainer.
    • toArray

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

      byte[] toByteArray(Function<E,Byte> byteGetter)
      Parameter:
      byteGetter -
      Gibt zurück:
      a new array with the bytes the given byteGetter returns from the elements of the current IMappableContainer.
    • toCharArray

      char[] toCharArray(Function<E,Character> charGetter)
      Parameter:
      charGetter -
      Gibt zurück:
      a new array with the chars the given charGetter returns from the elements of the current IMappableContainer.
    • toConcatenatedString

      String toConcatenatedString()
      Gibt zurück:
      a concatenated String representation of the current IMappableContainer.
    • toDoubleArray

      double[] toDoubleArray(ToDoubleFunction<E> doubleGetter)
      Parameter:
      doubleGetter -
      Gibt zurück:
      a new array with the doubles the given doubleGetter returns from the elements of the current IMappableContainer.
    • toFromGroups

      <E2> IContainer<E2> toFromGroups(Function<E,IContainer<E2>> extractor)
      Typparameter:
      E2 - is the type of the elements of the IMappableContainers the given extractor returns.
      Parameter:
      extractor -
      Gibt zurück:
      a new IMappableContainer with the elements of the IMappableContainers the given extractor extracts from the elements of the current IMappableContainer.
    • toIntArray

      int[] toIntArray(ToIntFunction<E> intGetter)
      Parameter:
      intGetter -
      Gibt zurück:
      a new array with the ints the given intGetter returns from the elements of the current IMappableContainer.
    • toLongArray

      long[] toLongArray(ToLongFunction<E> longGetter)
      Parameter:
      longGetter -
      Gibt zurück:
      a new array with the longs the given longGetter returns from the elements of the current IMappableContainer.