Class Packet<T extends Message>
- java.lang.Object
-
- de.larsgrefer.sass.embedded.connection.Packet<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
int
getCompilationId()
T
getMessage()
int
getSerializedSize()
int
hashCode()
static <T extends Message>
Packet<T>parseDelimitedFrom(InputStream inputStream, Parser<T> parser)
void
setCompilationId(int compilationId)
void
setMessage(T message)
String
toString()
void
writeDelimitedTo(OutputStream outputStream)
-
-
-
Constructor Detail
-
Packet
public Packet(int compilationId, T message)
-
-
Method Detail
-
getSerializedSize
public int getSerializedSize()
- See Also:
MessageLite.getSerializedSize()
-
writeDelimitedTo
public void writeDelimitedTo(OutputStream outputStream) throws IOException
- Throws:
IOException
- See Also:
MessageLite.writeDelimitedTo(OutputStream)
-
parseDelimitedFrom
public static <T extends Message> Packet<T> parseDelimitedFrom(InputStream inputStream, Parser<T> parser) throws IOException
- Throws:
IOException
- See Also:
OutboundMessage.parseDelimitedFrom(InputStream)
-
getCompilationId
public int getCompilationId()
-
getMessage
public T getMessage()
-
setCompilationId
public void setCompilationId(int compilationId)
-
setMessage
public void setMessage(T message)
-
canEqual
protected boolean canEqual(Object other)
-
-