BooleanResult

public class BooleanResult implements Result

A Result with a boolean value.

Summary

Public fields

final Status
final boolean

Public methods

final boolean
Status

Returns the status of this result.

boolean

Returns the boolean value of this result.

final int

Public fields

status

public final Status status

value

public final boolean value

Public methods

equals

public final boolean equals(@Nullable Object obj)

getStatus

public Status getStatus()

Returns the status of this result. Use isSuccess to determine whether the call was successful, and getStatusCode to determine what the error cause was.

Certain errors are due to failures that can be resolved by launching a particular intent. The resolution intent is available via getResolution.

getValue

public boolean getValue()

Returns the boolean value of this result.

hashCode

public final int hashCode()