Class RefCountedObjectProfile

java.lang.Object
io.scanbot.sdk.utils.RefCountedObjectProfile

public class RefCountedObjectProfile extends Object
Profile info of a reference-counted stored object.
  • Constructor Details

    • RefCountedObjectProfile

      public RefCountedObjectProfile(String uniqueId, long timestampCreated, int strongReferences, int serializedReferences)
      Constructs RefCountedObjectProfile with the given params.
      Parameters:
      uniqueId - Unique ID of the object.
      timestampCreated - Timestamp (milliseconds since the UNIX epoch), at which the object was first created.
      strongReferences - Number of strong references associated with the object. The strong reference count increases when a new instance of a platform ImageRef class is created from the object's unique ID and decreases when the ImageRef instance is destroyed. Default is `0`.
      serializedReferences - Number of serialized references to the object. The serialized reference count increases when an ImageRef is written to JSON or a Parcel on Android and decrease when the respective JSON or Parcel is deserialized. Default is `0`.
    • RefCountedObjectProfile

      public RefCountedObjectProfile(String uniqueId, long timestampCreated)
      Constructs RefCountedObjectProfile with default parameters.
      Parameters:
      uniqueId - Unique ID of the object.
      timestampCreated - Timestamp (milliseconds since the UNIX epoch), at which the object was first created.
  • Method Details

    • getUniqueId

      public String getUniqueId()
      Getter for uniqueId field. See constructor documentation for more information about the field.
      Returns:
      uniqueId
    • getTimestampCreated

      public long getTimestampCreated()
      Getter for timestampCreated field. See constructor documentation for more information about the field.
      Returns:
      timestampCreated
    • getStrongReferences

      public int getStrongReferences()
      Getter for strongReferences field. See constructor documentation for more information about the field.
      Returns:
      strongReferences
    • getSerializedReferences

      public int getSerializedReferences()
      Getter for serializedReferences field. See constructor documentation for more information about the field.
      Returns:
      serializedReferences