Package com.arms.api.toolcalling.service
Record Class ToolsService.Astronomy
java.lang.Object
java.lang.Record
com.arms.api.toolcalling.service.ToolsService.Astronomy
- Enclosing class:
ToolsService
-
Constructor Summary
Constructors -
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.intReturns the value of themoon_illuminationrecord component.Returns the value of themoon_phaserecord component.moonrise()Returns the value of themoonriserecord component.moonset()Returns the value of themoonsetrecord component.sunrise()Returns the value of thesunriserecord component.sunset()Returns the value of thesunsetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Astronomy
public Astronomy(int moon_illumination, String moon_phase, String moonrise, String moonset, String sunrise, String sunset) Creates an instance of aAstronomyrecord class.- Parameters:
moon_illumination- the value for themoon_illuminationrecord componentmoon_phase- the value for themoon_phaserecord componentmoonrise- the value for themoonriserecord componentmoonset- the value for themoonsetrecord componentsunrise- the value for thesunriserecord componentsunset- the value for thesunsetrecord 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 '=='. -
moon_illumination
public int moon_illumination()Returns the value of themoon_illuminationrecord component.- Returns:
- the value of the
moon_illuminationrecord component
-
moon_phase
Returns the value of themoon_phaserecord component.- Returns:
- the value of the
moon_phaserecord component
-
moonrise
Returns the value of themoonriserecord component.- Returns:
- the value of the
moonriserecord component
-
moonset
Returns the value of themoonsetrecord component.- Returns:
- the value of the
moonsetrecord component
-
sunrise
Returns the value of thesunriserecord component.- Returns:
- the value of the
sunriserecord component
-
sunset
Returns the value of thesunsetrecord component.- Returns:
- the value of the
sunsetrecord component
-