Package io.scanbot.sdk.utils
Class RefCountedObjectProfile
- java.lang.Object
-
- io.scanbot.sdk.utils.RefCountedObjectProfile
-
public class RefCountedObjectProfile extends java.lang.ObjectProfile info of a reference-counted stored object.
-
-
Constructor Summary
Constructors Constructor Description RefCountedObjectProfile(java.lang.String uniqueId, long timestampCreated)Constructs RefCountedObjectProfile with default parameters.RefCountedObjectProfile(java.lang.String uniqueId, long timestampCreated, int strongReferences, int serializedReferences)Constructs RefCountedObjectProfile with the given params.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSerializedReferences()Getter for serializedReferences field.intgetStrongReferences()Getter for strongReferences field.longgetTimestampCreated()Getter for timestampCreated field.java.lang.StringgetUniqueId()Getter for uniqueId field.
-
-
-
Constructor Detail
-
RefCountedObjectProfile
public RefCountedObjectProfile(java.lang.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 0serializedReferences- 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(java.lang.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 Detail
-
getUniqueId
public java.lang.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
-
-