Record Class CameraScanResult
java.lang.Object
java.lang.Record
org.tavall.couriers.api.web.service.camera.CameraScanResult
-
Constructor Summary
ConstructorsConstructorDescriptionCameraScanResult(boolean forbidden, ScanResponse response) Creates an instance of aCameraScanResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theforbiddenrecord component.final inthashCode()Returns a hash code value for this object.response()Returns the value of theresponserecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CameraScanResult
Creates an instance of aCameraScanResultrecord class.- Parameters:
forbidden- the value for theforbiddenrecord componentresponse- the value for theresponserecord component
-
-
Method Details
-
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. -
forbidden
public boolean forbidden()Returns the value of theforbiddenrecord component.- Returns:
- the value of the
forbiddenrecord component
-
response
Returns the value of theresponserecord component.- Returns:
- the value of the
responserecord component
-