Class Input


  • public class Input
    extends java.lang.Object
    Input - Arbitrary JSON used within your policies by accessing `input`
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Input._Deserializer  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      static Input of​(boolean value)  
      static Input of​(double value)  
      static Input of​(java.lang.String value)  
      static Input of​(java.util.List<java.lang.Object> value)  
      static Input of​(java.util.Map<java.lang.String,​java.lang.Object> value)  
      java.lang.String toString()  
      java.lang.Object 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>
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • of

        public static Input of​(boolean value)
      • of

        public static Input of​(java.lang.String value)
      • of

        public static Input of​(double value)
      • of

        public static Input of​(java.util.List<java.lang.Object> value)
      • of

        public static Input of​(java.util.Map<java.lang.String,​java.lang.Object> value)
      • value

        public java.lang.Object 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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object