Record Class LocalQRScanData
java.lang.Object
java.lang.Record
org.tavall.couriers.api.qr.scan.metadata.LocalQRScanData
public record LocalQRScanData(ScanIntent intent, UUID uuid, String rawContent, boolean isCached)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLocalQRScanData(ScanIntent intent, UUID uuid, String rawContent, boolean isCached) Creates an instance of aLocalQRScanDatarecord 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.intent()Returns the value of theintentrecord component.booleanisCached()Returns the value of theisCachedrecord component.booleanisValid()Returns the value of therawContentrecord component.final StringtoString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
LocalQRScanData
Creates an instance of aLocalQRScanDatarecord class.- Parameters:
intent- the value for theintentrecord componentuuid- the value for theuuidrecord componentrawContent- the value for therawContentrecord componentisCached- the value for theisCachedrecord component
-
-
Method Details
-
isValid
public boolean isValid() -
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. -
intent
Returns the value of theintentrecord component.- Returns:
- the value of the
intentrecord component
-
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
rawContent
Returns the value of therawContentrecord component.- Returns:
- the value of the
rawContentrecord component
-
isCached
public boolean isCached()Returns the value of theisCachedrecord component.- Returns:
- the value of the
isCachedrecord component
-