Class TreeNode

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class TreeNode extends ProxyInstance
An opaque type which identifies a specific node in a GTree.
Since:
2.68
  • Constructor Details

    • TreeNode

      public TreeNode(MemorySegment address)
      Create a TreeNode proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • key

      public @Nullable MemorySegment key()
      Gets the key stored at a particular tree node.
      Returns:
      the key at the node.
      Since:
      2.68
    • next

      public @Nullable TreeNode next()
      Returns the next in-order node of the tree, or null if the passed node was already the last one.
      Returns:
      the next node in the tree
      Since:
      2.68
    • previous

      public @Nullable TreeNode previous()
      Returns the previous in-order node of the tree, or null if the passed node was already the first one.
      Returns:
      the previous node in the tree
      Since:
      2.68
    • value

      public @Nullable MemorySegment value()
      Gets the value stored at a particular tree node.
      Returns:
      the value at the node.
      Since:
      2.68