Record Class Avatars.Lookup
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.app.avatar.Avatars.Lookup
- Enclosing class:
Avatars
An author on screen: who, and a commit of his on the GitHub repository (both may be null) to find the account.
-
Constructor Summary
ConstructorsConstructorDescriptionLookup(Author author, String commit, Avatars.Repo repo) Creates an instance of aLookuprecord class. -
Method Summary
Modifier and TypeMethodDescriptionauthor()Returns the value of theauthorrecord component.commit()Returns the value of thecommitrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.repo()Returns the value of thereporecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Lookup
Creates an instance of aLookuprecord class.- Parameters:
author- the value for theauthorrecord componentcommit- the value for thecommitrecord componentrepo- the value for thereporecord 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). -
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-
commit
Returns the value of thecommitrecord component.- Returns:
- the value of the
commitrecord component
-
repo
Returns the value of thereporecord component.- Returns:
- the value of the
reporecord component
-