Package org.localify.data.ingest
Record Class RabbitReceiver.BitNameScrapeResponse
java.lang.Object
java.lang.Record
org.localify.data.ingest.RabbitReceiver.BitNameScrapeResponse
- Record Components:
bitId- The BandsInTown ID.localifyId- The Localify ID.found- Whether a match was found.
- Enclosing class:
- RabbitReceiver
public static record RabbitReceiver.BitNameScrapeResponse(String bitId, UUID localifyId, boolean found)
extends Record
Represents a response from a BandsInTown name scrape.
-
Constructor Summary
ConstructorsConstructorDescriptionBitNameScrapeResponse(String bitId, UUID localifyId, boolean found) Creates an instance of aBitNameScrapeResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionbitId()Returns the value of thebitIdrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfound()Returns the value of thefoundrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelocalifyIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BitNameScrapeResponse
Creates an instance of aBitNameScrapeResponserecord class.- Parameters:
bitId- the value for thebitIdrecord componentlocalifyId- the value for thelocalifyIdrecord componentfound- the value for thefoundrecord 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 '=='. -
bitId
Returns the value of thebitIdrecord component.- Returns:
- the value of the
bitIdrecord component
-
localifyId
Returns the value of thelocalifyIdrecord component.- Returns:
- the value of the
localifyIdrecord component
-
found
public boolean found()Returns the value of thefoundrecord component.- Returns:
- the value of the
foundrecord component
-