Record Class NetherNetServer.Advertised.Nxs
java.lang.Object
java.lang.Record
org.geysermc.geyser.network.bedrock.nethernet.NetherNetServer.Advertised.Nxs
- Record Components:
published- what the service last confirmed, or null while it has confirmed nothing
- Enclosing class:
NetherNetServer.Advertised
public static record NetherNetServer.Advertised.Nxs(@Nullable org.cloudburstmc.netty.signaling.ProviderClient.PublishedEndpoints published)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionNxs(@Nullable org.cloudburstmc.netty.signaling.ProviderClient.PublishedEndpoints published) Creates an instance of aNxsrecord class. -
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.@Nullable org.cloudburstmc.netty.signaling.ProviderClient.PublishedEndpointsReturns the value of thepublishedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Nxs
public Nxs(@Nullable org.cloudburstmc.netty.signaling.ProviderClient.PublishedEndpoints published) Creates an instance of aNxsrecord class.- Parameters:
published- the value for thepublishedrecord 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). -
published
public @Nullable org.cloudburstmc.netty.signaling.ProviderClient.PublishedEndpoints published()Returns the value of thepublishedrecord component.- Returns:
- the value of the
publishedrecord component
-