Class Input
java.lang.Object
com.styra.opa.openapi.models.shared.Input
Input
Arbitrary JSON used within your policies by accessing `input`
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
static Input
of
(boolean value) static Input
of
(double value) static Input
static Input
static Input
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
-