public static enum MtuTestCallback.TestResult.Result extends java.lang.Enum<MtuTestCallback.TestResult.Result>
Enum Constant and Description |
---|
NO_OP
This means that
MtuTestCallback.Please.doNothing() was returned in the method MtuTestCallback.onTestRequest(MtuTestEvent) . |
OTHER_FAILURE
The write to test the MTU size failed for a reason other than a time out.
|
SUCCESS
The MTU test succeeded, so this android device should be good to go with the newly negotiated MTU size.
|
WRITE_TIMED_OUT
The write timed out when testing the new MTU size.
|
Modifier and Type | Method and Description |
---|---|
boolean |
success() |
static MtuTestCallback.TestResult.Result |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MtuTestCallback.TestResult.Result[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MtuTestCallback.TestResult.Result SUCCESS
public static final MtuTestCallback.TestResult.Result NO_OP
MtuTestCallback.Please.doNothing()
was returned in the method MtuTestCallback.onTestRequest(MtuTestEvent)
.public static final MtuTestCallback.TestResult.Result WRITE_TIMED_OUT
public static final MtuTestCallback.TestResult.Result OTHER_FAILURE
public static MtuTestCallback.TestResult.Result[] values()
for (MtuTestCallback.TestResult.Result c : MtuTestCallback.TestResult.Result.values()) System.out.println(c);
public static MtuTestCallback.TestResult.Result valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean success()