public class SourceRconPacket extends AbstractPacket implements Comparable<SourceRconPacket>
SourceRconPacket class.
Constructor and Description |
---|
SourceRconPacket(int type,
io.netty.buffer.ByteBuf payload)
Constructor for SourceRconPacket.
|
Modifier and Type | Method and Description |
---|---|
protected void |
buildToString(org.apache.commons.lang3.builder.ToStringBuilder builder)
buildToString.
|
int |
compareTo(@NotNull SourceRconPacket o) |
int |
getId()
Getter for the field
id . |
Integer |
getSize()
Getter for the field
size . |
int |
getTerminator()
Getter for the field
terminator . |
int |
getType()
Getter for the field
type . |
void |
setId(int id)
Setter for the field
id . |
void |
setSize(Integer size)
Setter for the field
size . |
void |
setTerminator(int terminator)
Setter for the field
terminator . |
protected void |
setType(int type)
Setter for the field
type . |
String |
toString() |
content, contentToString, copy, duplicate, equals, hashCode, refCnt, release, release, replace, retain, retain, retainedDuplicate, touch, touch
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public SourceRconPacket(int type, io.netty.buffer.ByteBuf payload)
Constructor for SourceRconPacket.
type
- a intpayload
- a ByteBuf
objectpublic void setSize(Integer size)
Setter for the field size
.
size
- a Integer
objectpublic int getTerminator()
Getter for the field terminator
.
public void setTerminator(int terminator)
Setter for the field terminator
.
terminator
- a intpublic final String toString()
toString
in class io.netty.buffer.DefaultByteBufHolder
protected void buildToString(org.apache.commons.lang3.builder.ToStringBuilder builder)
buildToString.
builder
- a ToStringBuilder
objectpublic int compareTo(@NotNull @NotNull SourceRconPacket o)
compareTo
in interface Comparable<SourceRconPacket>
public int getId()
Getter for the field id
.
public void setId(int id)
Setter for the field id
.
id
- a intpublic int getType()
Getter for the field type
.
protected void setType(int type)
Setter for the field type
.
type
- a intCopyright © 2016–2024. All rights reserved.