Schnittstelle DoubleUnaryOperator

Alle Superschnittstellen:
DoubleUnaryOperator
Alle bekannten Unterschnittstellen:
Double2DoubleConcurrentMap, Double2DoubleMap, Double2DoubleNavigableMap, Double2DoubleOrderedMap, Double2DoubleSortedMap
Alle bekannten Implementierungsklassen:
AbstractDouble2DoubleMap, Double2DoubleArrayMap, Double2DoubleAVLTreeMap, Double2DoubleConcurrentOpenHashMap, Double2DoubleLinkedOpenCustomHashMap, Double2DoubleLinkedOpenHashMap, Double2DoubleMaps.EmptyMap, Double2DoubleMaps.SingletonMap, Double2DoubleMaps.SynchronizedMap, Double2DoubleMaps.SynchronizedNavigableMap, Double2DoubleMaps.SynchronizedOrderedMap, Double2DoubleMaps.SynchronizedSortedMap, Double2DoubleMaps.UnmodifyableMap, Double2DoubleMaps.UnmodifyableNavigableMap, Double2DoubleMaps.UnmodifyableOrderedMap, Double2DoubleMaps.UnmodifyableSortedMap, Double2DoubleOpenCustomHashMap, Double2DoubleOpenHashMap, Double2DoubleRBTreeMap, ImmutableDouble2DoubleOpenHashMap
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public interface DoubleUnaryOperator extends DoubleUnaryOperator
A Type Specific Function interface that reduces boxing/unboxing and fills the gaps of interfaces that are missing.
  • Methodendetails

    • applyAsDouble

      double applyAsDouble(double k)
      Type Specific get function to reduce boxing/unboxing
      Angegeben von:
      applyAsDouble in Schnittstelle DoubleUnaryOperator
      Parameter:
      k - the value that should be processed
      Gibt zurück:
      the result of the function
    • identity

      static DoubleUnaryOperator identity()
      Creates a Default function that returns the input provided.
      Gibt zurück:
      a input returning function
    • compose

      default DoubleUnaryOperator compose(DoubleUnaryOperator before)
      Returns a composed function that first applies the before function to its input, and then applies this function to the result. If evaluation of either function throws an exception, it is relayed to the caller of the composed function.
      Parameter:
      before - the function that should be used first
      Gibt zurück:
      a composed function with a different starting function.
    • andThen

      default DoubleUnaryOperator andThen(DoubleUnaryOperator after)
      Returns a composed function that first applies this function to its input, and then applies the after function to the result. If evaluation of either function throws an exception, it is relayed to the caller of the composed function.
      Parameter:
      after - the function that should be used last
      Gibt zurück:
      a composed function with a different starting function.