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