java.lang.Object
swim.structure.Item
swim.structure.Value
swim.structure.Data
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddByte(byte value) addByteArray(byte[] array) addByteArray(byte[] array, int offset, int size) byte[]branch()voidclear()commit()intstatic Datacreate()static Datacreate(int initialCapacity) <T> Output<T>Writes a developer readable, debug-formatted string representation of this object tooutput.static Dataempty()booleanstatic Datafrom(ByteBuffer buffer) static DatafromBase16(String string) static DatafromBase64(String string) static DatafromBase64(String string, Base64 base64) static DatabytegetByte(int index) inthashCode()booleanbooleanbooleanoutput()output(int initialCapacity) setByte(int index, byte value) final intsize()toBase16()toBase64()byte[]intReturns the heterogeneous sort order of thisItem.static Datawrap(byte[] array) static Datawrap(byte[] array, int offset, int size) static Datawrap(ByteBuffer buffer) Writer<?,?> 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, unflattenedMethods 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, updatedSlotMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Data
protected Data(byte[] array, int offset, int size) -
Data
public Data(int initialCapacity) -
Data
public Data()
-
-
Method Details
-
isConstant
public boolean isConstant()Description copied from class:Item- Specified by:
isConstantin classItem
-
size
public final int size() -
getByte
public byte getByte(int index) -
setByte
-
addByte
-
addByteArray
-
addByteArray
-
addData
-
clear
public void clear() -
toByteArray
public byte[] toByteArray() -
asByteArray
public byte[] asByteArray() -
toByteBuffer
-
asByteBuffer
-
toInputBuffer
-
isAliased
public boolean isAliased() -
isMutable
public boolean isMutable() -
branch
-
commit
Description copied from class:Item -
writer
-
write
-
writeBase16
-
writeBase16
-
toBase16
-
toBase16
-
writeBase64
-
writeBase64
-
toBase64
-
toBase64
-
typeOrder
public int typeOrder()Description copied from class:ItemReturns 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
- Specified by:
compareToin interfaceComparable<Item>- Specified by:
compareToin classItem
-
equals
-
hashCode
public int hashCode() -
debug
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput. -
empty
-
create
-
create
-
wrap
-
wrap
-
wrap
-
from
-
fromBase16
-
fromBase64
-
fromBase64
-
fromUtf8
-
output
-
output
-
output
-