- java.lang.Object
-
- swim.structure.Item
-
- swim.structure.Value
-
- swim.structure.Data
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Data
addByte(byte value)
Data
addByteArray(byte[] array)
Data
addByteArray(byte[] array, int offset, int size)
Data
addData(Data data)
byte[]
asByteArray()
ByteBuffer
asByteBuffer()
Data
branch()
void
clear()
Data
commit()
int
compareTo(Item other)
static Data
create()
static Data
create(int initialCapacity)
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.static Data
empty()
boolean
equals(Object other)
static Data
from(ByteBuffer buffer)
static Data
fromBase16(String string)
static Data
fromBase64(String string)
static Data
fromBase64(String string, Base64 base64)
static Data
fromUtf8(String string)
byte
getByte(int index)
int
hashCode()
boolean
isAliased()
boolean
isConstant()
boolean
isMutable()
static Output<Data>
output()
static Output<Data>
output(int initialCapacity)
static Output<Data>
output(Data data)
Data
setByte(int index, byte value)
int
size()
String
toBase16()
String
toBase16(Base16 base16)
String
toBase64()
String
toBase64(Base64 base64)
byte[]
toByteArray()
ByteBuffer
toByteBuffer()
InputBuffer
toInputBuffer()
int
typeOrder()
Returns the heterogeneous sort order of thisItem
.static Data
wrap(byte[] array)
static Data
wrap(byte[] array, int offset, int size)
static Data
wrap(ByteBuffer buffer)
Writer<?,?>
write(Output<?> output)
Writer<?,?>
writeBase16(Output<?> output)
Writer<?,?>
writeBase16(Output<?> output, Base16 base16)
Writer<?,?>
writeBase64(Output<?> output)
Writer<?,?>
writeBase64(Output<?> output, Base64 base64)
Writer<?,?>
writer()
-
Methods inherited from class swim.structure.Value
absent, alias, and, and, bitwiseAnd, bitwiseAnd, bitwiseNot, bitwiseOr, bitwiseOr, bitwiseXor, bitwiseXor, body, booleanValue, booleanValue, builder, byteValue, byteValue, charValue, charValue, conditional, conditional, contains, containsKey, containsKey, containsValue, divide, divide, doubleValue, doubleValue, eq, eq, extant, flattened, floatValue, floatValue, fromObject, ge, ge, get, get, getAttr, getAttr, getField, getField, getItem, getSlot, getSlot, gt, gt, head, header, headers, integerValue, integerValue, intValue, intValue, inverse, isDefined, isDefinite, isDistinct, key, keyEquals, lambda, le, le, length, longValue, longValue, lt, lt, minus, minus, modulo, modulo, ne, ne, negative, not, numberValue, numberValue, or, or, plus, plus, positive, removed, removed, shortValue, shortValue, stringValue, stringValue, tag, tail, target, times, times, toValue, unflattened
-
Methods inherited from class swim.structure.Item
appended, appended, appended, appended, appended, appended, appended, appended, cast, cast, coerce, coerce, concat, display, evaluate, evaluate, filter, filter, globalScope, invoke, iterator, max, min, precedence, prepended, prepended, prepended, prepended, prepended, prepended, prepended, prepended, substitute, substitute, toString, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
isConstant
public boolean isConstant()
Description copied from class:Item
- Specified by:
isConstant
in classItem
-
size
public final int size()
-
getByte
public byte getByte(int index)
-
setByte
public Data setByte(int index, byte value)
-
addByte
public Data addByte(byte value)
-
addByteArray
public Data addByteArray(byte[] array, int offset, int size)
-
addByteArray
public Data addByteArray(byte[] array)
-
clear
public void clear()
-
toByteArray
public byte[] toByteArray()
-
asByteArray
public byte[] asByteArray()
-
toByteBuffer
public ByteBuffer toByteBuffer()
-
asByteBuffer
public ByteBuffer asByteBuffer()
-
toInputBuffer
public InputBuffer toInputBuffer()
-
writer
public Writer<?,?> writer()
-
toBase16
public String toBase16()
-
toBase64
public String toBase64()
-
typeOrder
public int typeOrder()
Description copied from class:Item
Returns the heterogeneous sort order of thisItem
. Used to impose a total order on the set of all items. When comparing two items of different types, the items order according to theirtypeOrder
.
-
compareTo
public int compareTo(Item other)
- Specified by:
compareTo
in interfaceComparable<Item>
- Specified by:
compareTo
in classItem
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
empty
public static Data empty()
-
create
public static Data create()
-
create
public static Data create(int initialCapacity)
-
wrap
public static Data wrap(ByteBuffer buffer)
-
wrap
public static Data wrap(byte[] array, int offset, int size)
-
wrap
public static Data wrap(byte[] array)
-
from
public static Data from(ByteBuffer buffer)
-
-