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 TypeMethodDescriptionbooleaninthashCode()static Resultof(boolean value) static Resultof(double value) static Resultstatic Resultstatic ResulttoString()value()Returns an instance of one of these types:booleanjava.lang.Stringdoublejava.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:booleanjava.lang.Stringdoublejava.util.List<java.lang.Object>java.util.Map<java.lang.String, java.lang.Object>
Use
instanceofto 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
-