Klasse MultiSorter

Alle implementierten Schnittstellen:
PointerInterface

public class MultiSorter extends Sorter
Combines multiple sorters by trying them in turn.

If the first sorter compares two items as equal,
the second is tried next, and so on.

https://docs.gtk.org/gtk4/class.MultiSorter.html

  • Konstruktordetails

    • MultiSorter

      public MultiSorter(PointerContainer pointer)
    • MultiSorter

      public MultiSorter()
      Creates a new multi sorter.

      This sorter compares items by trying each of the sorters
      in turn, until one returns non-zero. In particular, if
      no sorter has been added to it, it will always compare
      items as equal.
  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • append

      public void append(@Nonnull Sorter sorter)
      Add @sorter to @self to use for sorting at the end.

      @self will consult all existing sorters before it will
      sort with the given @sorter.
      Parameter:
      sorter - a sorter to add
    • remove

      public void remove(int position)
      Removes the sorter at the given @position from the list of sorter
      used by @self.

      If @position is larger than the number of sorters, nothing happens.
      Parameter:
      position - position of sorter to remove
    • asListModel

      public ListModel asListModel()
      Implements interface ListModel. Call this to get access to interface functions.
      Gibt zurück:
      ListModel
    • asBuildable

      public Buildable asBuildable()
      Implements interface Buildable. Call this to get access to interface functions.
      Gibt zurück:
      Buildable
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()