Class Result


  • public class Result
    extends java.lang.Object
    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 
      Modifier and Type Class Description
      static class  Result._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 Result of​(boolean value)  
      static Result of​(double value)  
      static Result of​(java.lang.String value)  
      static Result of​(java.util.List<java.lang.Object> value)  
      static Result 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 Result of​(boolean value)
      • of

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

        public static Result of​(double value)
      • of

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

        public static Result 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