Contents
Record Class StunMessage.Attribute
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.io.ice.StunMessage.Attribute
- Enclosing class:
StunMessage
-
Constructor Summary
ConstructorsConstructorDescriptionAttribute(int type, byte[] value) Creates an instance of aAttributerecord 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.final StringtoString()Returns a string representation of this record class.inttype()Returns the value of thetyperecord component.byte[]value()Returns the value of thevaluerecord component.
-
Constructor Details
-
Attribute
public Attribute(int type, byte[] value) Creates an instance of aAttributerecord class.- Parameters:
type- the value for thetyperecord componentvalue- the value for thevaluerecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
type
public int type()Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
value
public byte[] value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-