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 TypeMethodDescriptionbooleaninthashCode()static Inputof(boolean value) static Inputof(double value) static Inputstatic Inputstatic InputtoString()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
-