Class KonceptEntry

java.lang.Object
network.ike.docs.koncept.KonceptEntry

public class KonceptEntry extends Object
Tracks references to a single Koncept within a document. Thread-safe for concurrent macro processing.
  • Constructor Details

    • KonceptEntry

      public KonceptEntry(String identifier)
      Creates an entry for the given koncept identifier with a reference count of zero.
      Parameters:
      identifier - the CamelCase koncept identifier
  • Method Details

    • getIdentifier

      public String getIdentifier()
      Returns the koncept identifier.
      Returns:
      the CamelCase identifier
    • incrementRefCount

      public int incrementRefCount()
      Atomically increments and returns the reference count.
      Returns:
      the new reference count after incrementing
    • getRefCount

      public int getRefCount()
      Returns the current reference count.
      Returns:
      the number of times this koncept has been referenced
    • toString

      public String toString()
      Overrides:
      toString in class Object