se.l4.commons.io.DefaultByteMessage Maven / Gradle / Ivy
The newest version!
package se.l4.commons.io;
public class DefaultByteMessage
implements ByteMessage
{
private final long tag;
private final Bytes data;
public DefaultByteMessage(long tag, Bytes data)
{
this.tag = tag;
this.data = data;
}
@Override
public long getTag()
{
return tag;
}
@Override
public Bytes getData()
{
return data;
}
@Override
public String toString()
{
return getClass().getSimpleName() + "{tag=" + tag + ", data=" + data + "}";
}
}