public class PositionWritable extends Object implements Writable
Position
Constructor and Description |
---|
PositionWritable(Position loc)
Creates a new position based from an existing location
|
Modifier and Type | Method and Description |
---|---|
Position |
location()
Gets the wrapped, original location
|
void |
setLoc(Position loc)
Sets the wrapped position
|
void |
write(ByteBuf buf)
Writes the data contained by the current implementation into serialized form in the provided
io.netty.buffer.ByteBuf |
public PositionWritable(Position loc)
loc
- the location to wrap with writable formatpublic Position location()
setLoc(Position)
public void setLoc(Position loc)
This does not change the value of already written locations. This is purely for purposes of performance, but removes concurrency.
loc
- the location to wrap with writable formatCopyright © 2016. All rights reserved.