Record Class WeatherDiscoveryStore.Candidate
java.lang.Object
java.lang.Record
ecmwf.common.database.WeatherDiscoveryStore.Candidate
- All Implemented Interfaces:
Serializable
- Enclosing class:
WeatherDiscoveryStore
public static record WeatherDiscoveryStore.Candidate(WeatherObservation.Path path, String nickname, String group)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCandidate(WeatherObservation.Path path, String nickname, String group) Creates an instance of aCandidaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.nickname()Returns the value of thenicknamerecord component.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Candidate
Creates an instance of aCandidaterecord class.- Parameters:
path- the value for thepathrecord componentnickname- the value for thenicknamerecord componentgroup- the value for thegrouprecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
nickname
Returns the value of thenicknamerecord component.- Returns:
- the value of the
nicknamerecord component
-
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-