Schnittstelle IntUnaryOperator

Alle Superschnittstellen:
IntUnaryOperator
Alle bekannten Unterschnittstellen:
Int2IntConcurrentMap, Int2IntMap, Int2IntNavigableMap, Int2IntOrderedMap, Int2IntSortedMap
Alle bekannten Implementierungsklassen:
AbstractInt2IntMap, ImmutableInt2IntOpenHashMap, Int2IntArrayMap, Int2IntAVLTreeMap, Int2IntConcurrentOpenHashMap, Int2IntLinkedOpenCustomHashMap, Int2IntLinkedOpenHashMap, Int2IntMaps.EmptyMap, Int2IntMaps.SingletonMap, Int2IntMaps.SynchronizedMap, Int2IntMaps.SynchronizedNavigableMap, Int2IntMaps.SynchronizedOrderedMap, Int2IntMaps.SynchronizedSortedMap, Int2IntMaps.UnmodifyableMap, Int2IntMaps.UnmodifyableNavigableMap, Int2IntMaps.UnmodifyableOrderedMap, Int2IntMaps.UnmodifyableSortedMap, Int2IntOpenCustomHashMap, Int2IntOpenHashMap, Int2IntRBTreeMap
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

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

    Modifizierer und Typ
    Methode
    Beschreibung
    Returns a composed function that first applies this function to its input, and then applies the after function to the result.
    int
    applyAsInt(int k)
    Type Specific get function to reduce boxing/unboxing
    Returns a composed function that first applies the before function to its input, and then applies this function to the result.
    Creates a Default function that returns the input provided.

    Von Schnittstelle geerbte Methoden java.util.function.IntUnaryOperator

    andThen, compose
  • Methodendetails

    • applyAsInt

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

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

      default IntUnaryOperator compose(IntUnaryOperator 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 IntUnaryOperator andThen(IntUnaryOperator 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.