Class KonceptEntry
java.lang.Object
network.ike.docs.koncept.KonceptEntry
Tracks references to a single Koncept within a document.
Thread-safe for concurrent macro processing.
-
Constructor Summary
ConstructorsConstructorDescriptionKonceptEntry(String identifier) Creates an entry for the given koncept identifier with a reference count of zero. -
Method Summary
Modifier and TypeMethodDescriptionReturns the koncept identifier.intReturns the current reference count.intAtomically increments and returns the reference count.toString()
-
Constructor Details
-
KonceptEntry
Creates an entry for the given koncept identifier with a reference count of zero.- Parameters:
identifier- the CamelCase koncept identifier
-
-
Method Details
-
getIdentifier
-
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
-