Record Class JsonText.JsonObjectResult.ValidResultClassNotFound
java.lang.Object
java.lang.Record
org.diabetestechnology.drh.service.http.util.JsonText.JsonObjectResult.ValidResultClassNotFound
- All Implemented Interfaces:
JsonText.JsonObjectResult
- Enclosing interface:
JsonText.JsonObjectResult
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.diabetestechnology.drh.service.http.util.JsonText.JsonObjectResult
JsonText.JsonObjectResult.InvalidResult, JsonText.JsonObjectResult.ValidResult<T>, JsonText.JsonObjectResult.ValidResultClassNotFound, JsonText.JsonObjectResult.ValidResultClassNotInstantiated, JsonText.JsonObjectResult.ValidUntypedResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisValid()Returns the value of thejsonObjectrecord component.Returns the value of theoriginalTextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ValidResultClassNotFound
public ValidResultClassNotFound(String originalText, Map<String, Object> jsonObject, String className) Creates an instance of aValidResultClassNotFoundrecord class.- Parameters:
originalText- the value for theoriginalTextrecord componentjsonObject- the value for thejsonObjectrecord componentclassName- the value for theclassNamerecord component
-
-
Method Details
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceJsonText.JsonObjectResult
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
originalText
Returns the value of theoriginalTextrecord component.- Specified by:
originalTextin interfaceJsonText.JsonObjectResult- Returns:
- the value of the
originalTextrecord component
-
jsonObject
Returns the value of thejsonObjectrecord component.- Returns:
- the value of the
jsonObjectrecord component
-
className
Returns the value of theclassNamerecord component.- Returns:
- the value of the
classNamerecord component
-