public class MatchResult extends Object
Modifier and Type | Field and Description |
---|---|
static int |
INDETERMINATE
An integer value indicating the the result is Indeterminate
|
static int |
MATCH
An integer value indicating the the target matches the request
|
static int |
NO_MATCH
An integer value indicating that the target doesn't match the request
|
Constructor and Description |
---|
MatchResult(int result)
Constructor that creates a
MatchResult with no Status |
MatchResult(int result,
Status status)
Constructor that creates a
MatchResult , including Status
data |
Modifier and Type | Method and Description |
---|---|
int |
getResult()
Returns the applicable result
|
Status |
getStatus()
Returns the status if there was an error, or null if no error occurred
|
public static final int MATCH
public static final int NO_MATCH
public static final int INDETERMINATE
public MatchResult(int result)
MatchResult
with no Statusresult
- the applicable resultpublic MatchResult(int result, Status status) throws IllegalArgumentException
MatchResult
, including Status
dataresult
- the applicable resultstatus
- the error informationIllegalArgumentException
- if the input result isn't a valid valuepublic int getResult()
public Status getStatus()
Copyright © 2023 JBoss by Red Hat. All rights reserved.