public class Slice extends Object
| Modifier and Type | Method and Description |
|---|---|
Slice |
addBoolean(boolean value)
Adds boolean to the Slice object.
|
Slice |
addByte(byte value)
Adds byte to the Slice object.
|
Slice |
addInt(int value)
Adds int to the Slice object.
|
Slice |
addLong(long value)
Adds long to the Slice object.
|
Slice |
addString(String string)
Adds string to the Slice object.
|
swaydb.data.slice.Slice<Object> |
close()
Closes the Slice object.
|
static Slice |
create(int size)
Creates the Slice object.
|
public static Slice create(int size)
size - the sizepublic Slice addString(String string)
string - the stringpublic Slice addInt(int value)
value - the valuepublic Slice addLong(long value)
value - the valuepublic Slice addByte(byte value)
value - the valuepublic Slice addBoolean(boolean value)
value - the valuepublic swaydb.data.slice.Slice<Object> close()
Copyright © 2019. All rights reserved.