Package com.li64.tide.data.journal
Record Class JournalLayout.Profile
java.lang.Object
java.lang.Record
com.li64.tide.data.journal.JournalLayout.Profile
- Enclosing class:
- JournalLayout
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclimate()Returns the value of theclimaterecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.fishItem()Returns the value of thefishItemrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thejournalPagerecord component.location()Returns the value of thelocationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Profile
public Profile(String fishItem, String description, String journalPage, String location, String climate) Creates an instance of aProfilerecord class.- Parameters:
fishItem- the value for thefishItemrecord componentdescription- the value for thedescriptionrecord componentjournalPage- the value for thejournalPagerecord componentlocation- the value for thelocationrecord componentclimate- the value for theclimaterecord 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). -
fishItem
Returns the value of thefishItemrecord component.- Returns:
- the value of the
fishItemrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
journalPage
Returns the value of thejournalPagerecord component.- Returns:
- the value of the
journalPagerecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
climate
Returns the value of theclimaterecord component.- Returns:
- the value of the
climaterecord component
-