Class Replace
java.lang.Object
com.styra.opa.openapi.models.shared.Replace
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
static Replace
of
(boolean value) static Replace
of
(double value) static Replace
static Replace
static Replace
toString()
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>
-
Method Details
-
of
-
of
-
of
-
of
-
of
-
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
-
hashCode
public int hashCode() -
toString
-