Interface Mutate1D.Mixable<N extends Comparable<N>>

All Superinterfaces:
Structure1D
All Known Subinterfaces:
Mutate2D.Mixable<N>, MutateAnyD.Mixable<N>
All Known Implementing Classes:
Array1D, Array2D, ArrayAnyD, LongToNumberMap, NumberList
Enclosing interface:
Mutate1D

public static interface Mutate1D.Mixable<N extends Comparable<N>> extends Structure1D
Mix/combine the previously existing value, at index, with the supplied addend. The intention is that implementations should make this method thread safe even if the class as a whole is not (which is usually the case).
  • Method Details

    • mix

      double mix(long index, BinaryFunction<N> mixer, double addend)
      Returns:
      The new/mixed value
    • mix

      N mix(long index, BinaryFunction<N> mixer, N addend)