Record Class ToolsService.Astronomy

java.lang.Object
java.lang.Record
com.arms.api.toolcalling.service.ToolsService.Astronomy
Enclosing class:
ToolsService

public static record ToolsService.Astronomy(int moon_illumination, String moon_phase, String moonrise, String moonset, String sunrise, String sunset) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    Astronomy(int moon_illumination, String moon_phase, String moonrise, String moonset, String sunrise, String sunset)
    Creates an instance of a Astronomy record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the moon_illumination record component.
    Returns the value of the moon_phase record component.
    Returns the value of the moonrise record component.
    Returns the value of the moonset record component.
    Returns the value of the sunrise record component.
    Returns the value of the sunset record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Astronomy

      public Astronomy(int moon_illumination, String moon_phase, String moonrise, String moonset, String sunrise, String sunset)
      Creates an instance of a Astronomy record class.
      Parameters:
      moon_illumination - the value for the moon_illumination record component
      moon_phase - the value for the moon_phase record component
      moonrise - the value for the moonrise record component
      moonset - the value for the moonset record component
      sunrise - the value for the sunrise record component
      sunset - the value for the sunset record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • moon_illumination

      public int moon_illumination()
      Returns the value of the moon_illumination record component.
      Returns:
      the value of the moon_illumination record component
    • moon_phase

      public String moon_phase()
      Returns the value of the moon_phase record component.
      Returns:
      the value of the moon_phase record component
    • moonrise

      public String moonrise()
      Returns the value of the moonrise record component.
      Returns:
      the value of the moonrise record component
    • moonset

      public String moonset()
      Returns the value of the moonset record component.
      Returns:
      the value of the moonset record component
    • sunrise

      public String sunrise()
      Returns the value of the sunrise record component.
      Returns:
      the value of the sunrise record component
    • sunset

      public String sunset()
      Returns the value of the sunset record component.
      Returns:
      the value of the sunset record component