Record Class NetherNetServer.Advertised.Builtin
java.lang.Object
java.lang.Record
org.geysermc.geyser.network.bedrock.nethernet.NetherNetServer.Advertised.Builtin
- Record Components:
configured- the configured addresses. When empty, this machine's own addresses anddiscoveredstun- whether STUN discovery is ondiscovered- the public addresses STUN discovery currently finds
- Enclosing class:
NetherNetServer.Advertised
public static record NetherNetServer.Advertised.Builtin(List<InetSocketAddress> configured, boolean stun, List<InetSocketAddress> discovered)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBuiltin(List<InetSocketAddress> configured, boolean stun, List<InetSocketAddress> discovered) Creates an instance of aBuiltinrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfiguredrecord component.Returns the value of thediscoveredrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanstun()Returns the value of thestunrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Builtin
public Builtin(List<InetSocketAddress> configured, boolean stun, List<InetSocketAddress> discovered) Creates an instance of aBuiltinrecord class.- Parameters:
configured- the value for theconfiguredrecord componentstun- the value for thestunrecord componentdiscovered- the value for thediscoveredrecord 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 '=='. -
configured
Returns the value of theconfiguredrecord component.- Returns:
- the value of the
configuredrecord component
-
stun
public boolean stun()Returns the value of thestunrecord component.- Returns:
- the value of the
stunrecord component
-
discovered
Returns the value of thediscoveredrecord component.- Returns:
- the value of the
discoveredrecord component
-