Record Class DumpInfo.NetherNetInfo.Nxs

java.lang.Object
java.lang.Record
org.geysermc.geyser.dump.DumpInfo.NetherNetInfo.Nxs
Record Components:
confirmed - whether the service has confirmed addresses
instanceId - the id the service knows this server by, null until registered
clockOffsetMillis - the service's clock minus this machine's, which refuses requests when too far off
Enclosing class:
DumpInfo.NetherNetInfo

public static record DumpInfo.NetherNetInfo.Nxs(boolean confirmed, @Nullable String instanceId, long clockOffsetMillis, List<String> addresses, List<Integer> assistedFamilies) extends Record
  • Constructor Details

    • Nxs

      public Nxs(boolean confirmed, @Nullable String instanceId, long clockOffsetMillis, List<String> addresses, List<Integer> assistedFamilies)
      Creates an instance of a Nxs record class.
      Parameters:
      confirmed - the value for the confirmed record component
      instanceId - the value for the instanceId record component
      clockOffsetMillis - the value for the clockOffsetMillis record component
      addresses - the value for the addresses record component
      assistedFamilies - the value for the assistedFamilies 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.
    • confirmed

      public boolean confirmed()
      Returns the value of the confirmed record component.
      Returns:
      the value of the confirmed record component
    • instanceId

      public @Nullable String instanceId()
      Returns the value of the instanceId record component.
      Returns:
      the value of the instanceId record component
    • clockOffsetMillis

      public long clockOffsetMillis()
      Returns the value of the clockOffsetMillis record component.
      Returns:
      the value of the clockOffsetMillis record component
    • addresses

      public List<String> addresses()
      Returns the value of the addresses record component.
      Returns:
      the value of the addresses record component
    • assistedFamilies

      public List<Integer> assistedFamilies()
      Returns the value of the assistedFamilies record component.
      Returns:
      the value of the assistedFamilies record component