Record Class ProviderHostFactory.Host
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.provider.ProviderHostFactory.Host
- Enclosing interface:
- ProviderHostFactory
public static record ProviderHostFactory.Host(ProviderTransport transport, io.netty.channel.Channel channel, List<String> warnings)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionHost(ProviderTransport transport, io.netty.channel.Channel channel, List<String> warnings) Creates an instance of aHostrecord class. -
Method Summary
Modifier and TypeMethodDescriptionio.netty.channel.Channelchannel()Returns the value of thechannelrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of thetransportrecord component.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
Host
Creates an instance of aHostrecord class.- Parameters:
transport- the value for thetransportrecord componentchannel- the value for thechannelrecord componentwarnings- the value for thewarningsrecord 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). -
transport
Returns the value of thetransportrecord component.- Returns:
- the value of the
transportrecord component
-
channel
public io.netty.channel.Channel channel()Returns the value of thechannelrecord component.- Returns:
- the value of the
channelrecord component
-
warnings
Returns the value of thewarningsrecord component.- Returns:
- the value of the
warningsrecord component
-