Record Class BuildRecord
java.lang.Object
java.lang.Record
com.group8.BuildRecord
- Record Components:
commit- Git commit SHA that triggered this buildstatus- Build result status, expected values: "SUCCESS" or "FAILURE"timestamp- Build time in milliseconds since epochlog- Log message
-
Constructor Summary
ConstructorsConstructorDescriptionBuildRecord(String commit, String status, long timestamp, String log) Creates an instance of aBuildRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncommit()Returns the value of thecommitrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.log()Returns the value of thelogrecord component.status()Returns the value of thestatusrecord component.longReturns the value of thetimestamprecord component.org.json.JSONObjectConverts this build record into JSON for persistencefinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toJSONObject
public org.json.JSONObject toJSONObject()Converts this build record into JSON for persistence -
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
commit
-
status
-
timestamp
-
log
-