Package io.openems.edge.bridge.http.api
Record Class BridgeHttpTime.TimeEndpoint
java.lang.Object
java.lang.Record
io.openems.edge.bridge.http.api.BridgeHttpTime.TimeEndpoint
- Enclosing interface:
BridgeHttpTime
public static record BridgeHttpTime.TimeEndpoint(DelayTimeProvider delayTimeProvider, BridgeHttp.Endpoint endpoint, Consumer<String> onResult, Consumer<Throwable> onError)
extends Record
-
Constructor Summary
ConstructorDescriptionTimeEndpoint
(DelayTimeProvider delayTimeProvider, BridgeHttp.Endpoint endpoint, Consumer<String> onResult, Consumer<Throwable> onError) Creates an instance of aTimeEndpoint
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedelayTimeProvider
record component.endpoint()
Returns the value of theendpoint
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.onError()
Returns the value of theonError
record component.onResult()
Returns the value of theonResult
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
TimeEndpoint
public TimeEndpoint(DelayTimeProvider delayTimeProvider, BridgeHttp.Endpoint endpoint, Consumer<String> onResult, Consumer<Throwable> onError) Creates an instance of aTimeEndpoint
record class.- Parameters:
delayTimeProvider
- the value for thedelayTimeProvider
record componentendpoint
- the value for theendpoint
record componentonResult
- the value for theonResult
record componentonError
- the value for theonError
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
delayTimeProvider
Returns the value of thedelayTimeProvider
record component.- Returns:
- the value of the
delayTimeProvider
record component
-
endpoint
Returns the value of theendpoint
record component.- Returns:
- the value of the
endpoint
record component
-
onResult
Returns the value of theonResult
record component.- Returns:
- the value of the
onResult
record component
-
onError
Returns the value of theonError
record component.- Returns:
- the value of the
onError
record component
-