Schnittstelle CharUnaryOperator

Alle bekannten Unterschnittstellen:
Char2CharConcurrentMap, Char2CharMap, Char2CharNavigableMap, Char2CharOrderedMap, Char2CharSortedMap
Alle bekannten Implementierungsklassen:
AbstractChar2CharMap, Char2CharArrayMap, Char2CharAVLTreeMap, Char2CharConcurrentOpenHashMap, Char2CharLinkedOpenCustomHashMap, Char2CharLinkedOpenHashMap, Char2CharMaps.EmptyMap, Char2CharMaps.SingletonMap, Char2CharMaps.SynchronizedMap, Char2CharMaps.SynchronizedNavigableMap, Char2CharMaps.SynchronizedOrderedMap, Char2CharMaps.SynchronizedSortedMap, Char2CharMaps.UnmodifyableMap, Char2CharMaps.UnmodifyableNavigableMap, Char2CharMaps.UnmodifyableOrderedMap, Char2CharMaps.UnmodifyableSortedMap, Char2CharOpenCustomHashMap, Char2CharOpenHashMap, Char2CharRBTreeMap, ImmutableChar2CharOpenHashMap
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public interface CharUnaryOperator
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.
    char
    applyAsChar(char 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.
  • Methodendetails

    • applyAsChar

      char applyAsChar(char k)
      Type Specific get function to reduce boxing/unboxing
      Parameter:
      k - the value that should be processed
      Gibt zurück:
      the result of the function
    • identity

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

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