Class Replace

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

public class Replace extends Object
  • Method Details

    • of

      public static Replace of(boolean value)
    • of

      public static Replace of(String value)
    • of

      public static Replace of(double value)
    • of

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

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