Package io.scanbot.sdk.utils
Class RefCountedObjectProfile
java.lang.Object
io.scanbot.sdk.utils.RefCountedObjectProfile
Profile info of a reference-counted stored object.
-
Constructor Summary
ConstructorsConstructorDescriptionRefCountedObjectProfile(String uniqueId, long timestampCreated) Constructs RefCountedObjectProfile with default parameters.RefCountedObjectProfile(String uniqueId, long timestampCreated, int strongReferences, int serializedReferences) Constructs RefCountedObjectProfile with the given params. -
Method Summary
Modifier and TypeMethodDescriptionintGetter for serializedReferences field.intGetter for strongReferences field.longGetter for timestampCreated field.Getter for uniqueId field.
-
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
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
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
-