Package org.aksw.iguana.cc.worker
Record Class HttpWorker.Result
java.lang.Object
java.lang.Record
org.aksw.iguana.cc.worker.HttpWorker.Result
- Enclosing class:
- HttpWorker
public static record HttpWorker.Result(long workerID, List<HttpWorker.ExecutionStats> executionStats, ZonedDateTime startTime, ZonedDateTime endTime)
extends Record
-
Constructor Summary
ConstructorDescriptionResult
(long workerID, List<HttpWorker.ExecutionStats> executionStats, ZonedDateTime startTime, ZonedDateTime endTime) Creates an instance of aResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionendTime()
Returns the value of theendTime
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexecutionStats
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thestartTime
record component.final String
toString()
Returns a string representation of this record class.long
workerID()
Returns the value of theworkerID
record component.
-
Constructor Details
-
Result
public Result(long workerID, List<HttpWorker.ExecutionStats> executionStats, ZonedDateTime startTime, ZonedDateTime endTime) Creates an instance of aResult
record class.- Parameters:
workerID
- the value for theworkerID
record componentexecutionStats
- the value for theexecutionStats
record componentstartTime
- the value for thestartTime
record componentendTime
- the value for theendTime
record component
-
-
Method Details
-
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 '=='. -
workerID
public long workerID()Returns the value of theworkerID
record component.- Returns:
- the value of the
workerID
record component
-
executionStats
Returns the value of theexecutionStats
record component.- Returns:
- the value of the
executionStats
record component
-
startTime
Returns the value of thestartTime
record component.- Returns:
- the value of the
startTime
record component
-
endTime
Returns the value of theendTime
record component.- Returns:
- the value of the
endTime
record component
-