Record Class DBConstraintResult
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.merlin.server.models.DBConstraintResult
- Record Components:
id- The database id of the constraint resultresults- The JsonObject stored in the database, as it was stored. Unparsed, as this is only needed for the action's return.
- All Implemented Interfaces:
gov.nasa.jpl.aerie.constraints.model.ConstraintResult
public record DBConstraintResult(long id, javax.json.JsonObject results)
extends Record
implements gov.nasa.jpl.aerie.constraints.model.ConstraintResult
A constraint result that is stored in the database
-
Constructor Summary
ConstructorsConstructorDescriptionDBConstraintResult(long id, javax.json.JsonObject results) Creates an instance of aDBConstraintResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longid()Returns the value of theidrecord component.javax.json.JsonObjectresults()Returns the value of theresultsrecord component.javax.json.JsonObjecttoJSON()As DB Constraint Results are not meant to be created by parsing JSON, this record returns the results object as it was fetched from the database.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toJSON
public javax.json.JsonObject toJSON()As DB Constraint Results are not meant to be created by parsing JSON, this record returns the results object as it was fetched from the database.- Specified by:
toJSONin interfacegov.nasa.jpl.aerie.constraints.model.ConstraintResult
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
public long id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
results
public javax.json.JsonObject results()Returns the value of theresultsrecord component.- Returns:
- the value of the
resultsrecord component
-