Schnittstelle Glib.OnHRFunc

Umschließende Klasse:
Glib
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public static interface Glib.OnHRFunc
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    boolean
    onHRFunc(CallbackHandler __self, Pointer key, Pointer value, Pointer user_data)
    Specifies the type of the function passed to
    [func@GLib.HashTable.find], [func@GLib.HashTable.foreach_remove], and
    [func@GLib.HashTable.foreach_steal].
  • Methodendetails

    • onHRFunc

      boolean onHRFunc(CallbackHandler __self, @Nullable Pointer key, @Nullable Pointer value, @Nullable Pointer user_data)
      Specifies the type of the function passed to
      [func@GLib.HashTable.find], [func@GLib.HashTable.foreach_remove], and
      [func@GLib.HashTable.foreach_steal].

      The function is called with each key/value pair, together with
      the @user_data parameter passed to the calling function.

      The function should return true if the key/value pair should be
      selected, meaning it has been found or it should be removed from the
      [struct@GLib.HashTable], depending on the calling function.
      Parameter:
      key - a key
      value - the value associated with the key
      user_data - user data passed to the calling function
      Gibt zurück:
      true if the key/value pair should be selected, and false otherwise