Package org.robolectric.shadows
Class RollbackInfoBuilder
- java.lang.Object
-
- org.robolectric.shadows.RollbackInfoBuilder
-
public final class RollbackInfoBuilder extends Object
Builder forRollbackInfo
as RollbackInfo has hidden constructors, this builder class has been added as a way to make custom RollbackInfo objects when needed.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description android.content.rollback.RollbackInfo
build()
Returns aRollbackInfo
with the data that was given.static RollbackInfoBuilder
newBuilder()
Start building a new RollbackInfoRollbackInfoBuilder
setCausePackages(List<VersionedPackage> causePackages)
Sets the cause packages of the rollback.RollbackInfoBuilder
setCommittedSessionId(int committedSessionId)
Sets the committed session id of the rollback.RollbackInfoBuilder
setIsStaged(boolean isStaged)
Sets the staged status of the rollback.RollbackInfoBuilder
setPackages(List<android.content.rollback.PackageRollbackInfo> packages)
Sets the packages of the rollback.RollbackInfoBuilder
setRollbackId(int rollbackId)
Sets the id of the rollback.
-
-
-
Method Detail
-
newBuilder
public static RollbackInfoBuilder newBuilder()
Start building a new RollbackInfo- Returns:
- a new instance of
RollbackInfoBuilder
.
-
setRollbackId
public RollbackInfoBuilder setRollbackId(int rollbackId)
Sets the id of the rollback.
-
setPackages
public RollbackInfoBuilder setPackages(List<android.content.rollback.PackageRollbackInfo> packages)
Sets the packages of the rollback.
-
setIsStaged
public RollbackInfoBuilder setIsStaged(boolean isStaged)
Sets the staged status of the rollback.
-
setCausePackages
public RollbackInfoBuilder setCausePackages(List<VersionedPackage> causePackages)
Sets the cause packages of the rollback.
-
setCommittedSessionId
public RollbackInfoBuilder setCommittedSessionId(int committedSessionId)
Sets the committed session id of the rollback.
-
build
public android.content.rollback.RollbackInfo build()
Returns aRollbackInfo
with the data that was given.
-
-