Package io.scanbot.common
Class RefCountedObjectProfile
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class RefCountedObjectProfile implements Parcelable
Profile info of a reference-counted stored object.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringuniqueIdprivate final LongtimestampCreatedprivate final IntegerstrongReferencesprivate final IntegerserializedReferences
-
Constructor Summary
Constructors Constructor Description RefCountedObjectProfile(Map<String, Object> source)RefCountedObjectProfile(JSONObject json)RefCountedObjectProfile(String uniqueId, Long timestampCreated, Integer strongReferences, Integer serializedReferences)
-
Method Summary
Modifier and Type Method Description final StringgetUniqueId()Unique ID of the object. final LonggetTimestampCreated()Timestamp (milliseconds since the UNIX epoch), at which the object was first created. final IntegergetStrongReferences()Number of strong references associated with the object. final IntegergetSerializedReferences()Number of serialized references to the object. final JSONObjecttoJson(ToJsonConfiguration config)final RefCountedObjectProfileclone()-
-
Constructor Detail
-
RefCountedObjectProfile
RefCountedObjectProfile(JSONObject json)
-
-
Method Detail
-
getUniqueId
final String getUniqueId()
Unique ID of the object.
-
getTimestampCreated
final Long getTimestampCreated()
Timestamp (milliseconds since the UNIX epoch), at which the object was first created.
-
getStrongReferences
final Integer getStrongReferences()
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
-
getSerializedReferences
final Integer getSerializedReferences()
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
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final RefCountedObjectProfile clone()
-
-
-
-