public static final class ProjectProblemsProvider.Result extends Object
Modifier and Type | Method and Description |
---|---|
static ProjectProblemsProvider.Result |
create(ProjectProblemsProvider.Status status)
Creates a new instance of the
ProjectProblemsProvider.Result . |
static ProjectProblemsProvider.Result |
create(ProjectProblemsProvider.Status status,
String message)
Creates a new instance of the
ProjectProblemsProvider.Result . |
String |
getMessage()
Returns possible error or warning message.
|
ProjectProblemsProvider.Status |
getStatus()
Returns status of the resolution.
|
boolean |
isResolved()
Returns true if the problem was resolved.
|
public boolean isResolved()
@NonNull public ProjectProblemsProvider.Status getStatus()
ProjectProblemsProvider.Status
@CheckForNull public String getMessage()
public static ProjectProblemsProvider.Result create(@NonNull ProjectProblemsProvider.Status status)
ProjectProblemsProvider.Result
.status
- the status of the project problem resolution.ProjectProblemsProvider.Result
instance.public static ProjectProblemsProvider.Result create(@NonNull ProjectProblemsProvider.Status status, @NonNull String message)
ProjectProblemsProvider.Result
.status
- the status of the project problem resolution.message
- the message which should be presented to the user.ProjectProblemsProvider.Result
instance.