Class ImageRefPoolSnapshotsDiff
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class ImageRefPoolSnapshotsDiff implements Parcelable
difference between two snapshots.
-
-
Constructor Summary
Constructors Constructor Description ImageRefPoolSnapshotsDiff(Map<String, Object> source)ImageRefPoolSnapshotsDiff(JSONObject json)ImageRefPoolSnapshotsDiff(Long totalMemoryConsumptionDiff, List<String> removed, List<String> added, List<String> modified)
-
Method Summary
Modifier and Type Method Description final LonggetTotalMemoryConsumptionDiff()Difference between total memory consumption in two snapshots. final UnitsetTotalMemoryConsumptionDiff(Long totalMemoryConsumptionDiff)Difference between total memory consumption in two snapshots. final List<String>getRemoved()Unique ids of ImageRefs that are not present in the second snapshot and present in the first snapshot. final UnitsetRemoved(List<String> removed)Unique ids of ImageRefs that are not present in the second snapshot and present in the first snapshot. final List<String>getAdded()Profiles of ImageRefs that are present in the second snapshot, but not in the first snapshot. final UnitsetAdded(List<String> added)Profiles of ImageRefs that are present in the second snapshot, but not in the first snapshot. final List<String>getModified()Profiles of ImageRefs that are present in both snapshots but are different. final UnitsetModified(List<String> modified)Profiles of ImageRefs that are present in both snapshots but are different. final JSONObjecttoJson(ToJsonConfiguration config)final ImageRefPoolSnapshotsDiffclone()-
-
Constructor Detail
-
ImageRefPoolSnapshotsDiff
ImageRefPoolSnapshotsDiff(JSONObject json)
-
-
Method Detail
-
getTotalMemoryConsumptionDiff
final Long getTotalMemoryConsumptionDiff()
Difference between total memory consumption in two snapshots.
Default is 0
-
setTotalMemoryConsumptionDiff
final Unit setTotalMemoryConsumptionDiff(Long totalMemoryConsumptionDiff)
Difference between total memory consumption in two snapshots.
Default is 0
-
getRemoved
final List<String> getRemoved()
Unique ids of ImageRefs that are not present in the second snapshot and present in the first snapshot.
-
setRemoved
final Unit setRemoved(List<String> removed)
Unique ids of ImageRefs that are not present in the second snapshot and present in the first snapshot.
-
getAdded
final List<String> getAdded()
Profiles of ImageRefs that are present in the second snapshot, but not in the first snapshot.
-
setAdded
final Unit setAdded(List<String> added)
Profiles of ImageRefs that are present in the second snapshot, but not in the first snapshot.
-
getModified
final List<String> getModified()
Profiles of ImageRefs that are present in both snapshots but are different. Profile is considered modified if number of references or memory consumption is different.
-
setModified
final Unit setModified(List<String> modified)
Profiles of ImageRefs that are present in both snapshots but are different. Profile is considered modified if number of references or memory consumption is different.
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final ImageRefPoolSnapshotsDiff clone()
-
-
-
-