Class LockFreePrefixTree.Node

java.lang.Object
java.lang.Number
java.util.concurrent.atomic.AtomicLong
org.graalvm.collections.LockFreePrefixTree.Node
All Implemented Interfaces:
Serializable
Enclosing class:
LockFreePrefixTree

public static class LockFreePrefixTree.Node extends AtomicLong
Since:
22.3
See Also:
  • Method Details

    • value

      public long value()
      Returns:
      The value of the LockFreePrefixTree.Node
      Since:
      22.3
    • setValue

      public void setValue(long value)
      Set the value for the LockFreePrefixTree.Node.
      Parameters:
      value - the new value.
      Since:
      22.3
    • incValue

      public long incValue()
      Increment value.
      Returns:
      newly incremented value of the LockFreePrefixTree.Node.
      Since:
      22.3
    • bitwiseOrValue

      public long bitwiseOrValue(long pattern)
      Atomically does the bitwise-or on the current value.
      Parameters:
      pattern - a bit pattern to do bitwise-or with
      Returns:
      the value immediately after the bitwise-or operation
      Since:
      23.0
    • at

      public LockFreePrefixTree.Node at(LockFreePrefixTree.Allocator allocator, long childKey)
      Get existing (or create if missing) child with the given key. May return null if the operation cannot complete, for example, due to inability to allocate nodes.
      Parameters:
      childKey - the key of the child.
      Returns:
      The child with the given childKey, or null if cannot complete.
      Since:
      22.3
    • toString

      public String toString()
      Overrides:
      toString in class AtomicLong
      Since:
      22.3