Class Result

java.lang.Object
com.styra.opa.openapi.models.shared.Result

public class Result extends Object
Result

The base or virtual document referred to by the URL path. If the path is undefined, this key will be omitted.

  • Method Details

    • of

      public static Result of(boolean value)
    • of

      public static Result of(String value)
    • of

      public static Result of(double value)
    • of

      public static Result of(List<Object> value)
    • of

      public static Result of(Map<String,Object> value)
    • value

      public 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(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object