Class Result
java.lang.Object
com.styra.opa.openapi.models.shared.Result
Result
The base or virtual document referred to by the URL path. If the path is undefined, this key will be omitted.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
static Result
of
(boolean value) static Result
of
(double value) static Result
static Result
static Result
toString()
value()
Returns an instance of one of these types:boolean
java.lang.String
double
java.util.List<java.lang.Object>
java.util.Map<java.lang.String, java.lang.Object>
-
Method Details
-
of
-
of
-
of
-
of
-
of
-
value
Returns an instance of one of these types:boolean
java.lang.String
double
java.util.List<java.lang.Object>
java.util.Map<java.lang.String, java.lang.Object>
Use
instanceof
to determine what type is returned. For example:if (obj.value() instanceof String) { String answer = (String) obj.value(); System.out.println("answer=" + answer); }
- Returns:
- value of oneOf type
-
equals
-
hashCode
public int hashCode() -
toString
-