Interface ReferenceCounted

All Known Implementing Classes:
LazyJsonNode

public interface ReferenceCounted
Since:
1.0
Author:
Graeme Rocher
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Release a reference to this object.
    Retain an additional reference to this object.
  • Method Details

    • retain

      Retain an additional reference to this object. All retained references must be released, or there will be a leak.
      Returns:
      this
    • release

      boolean release()
      Release a reference to this object.
      Returns:
      Whether the reference has been released
      Throws:
      IllegalStateException - if the reference count is already 0