public class ByteSequenceItem extends Object implements Item<ByteBuffer>
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
get() |
Parameters |
getParams()
Get the
Parameters of this Item. |
String |
serialize()
Serialize.
|
StringBuilder |
serializeTo(StringBuilder sb)
Serialize to an existing
StringBuilder. |
static ByteSequenceItem |
valueOf(byte[] value)
Creates a
ByteSequenceItem instance representing the specified
byte[] value. |
ByteSequenceItem |
withParams(Parameters params)
Given an existing
Item, return a new instance with the specified
Parameters. |
public static ByteSequenceItem valueOf(byte[] value)
ByteSequenceItem instance representing the specified
byte[] value.value - a byte[] value.ByteSequenceItem representing value.public ByteSequenceItem withParams(Parameters params)
ParametrizableItem, return a new instance with the specified
Parameters.withParams in interface Item<ByteBuffer>withParams in interface Parametrizable<ByteBuffer>params - Parameters to set (must be non-null)Parameters.public Parameters getParams()
ParametrizableParameters of this Item.getParams in interface Parametrizable<ByteBuffer>public StringBuilder serializeTo(StringBuilder sb)
TypeStringBuilder.serializeTo in interface Type<ByteBuffer>sb - where to serialize toStringBuilder so calls can be chained.public String serialize()
Typeserialize in interface Type<ByteBuffer>public ByteBuffer get()
get in interface Supplier<ByteBuffer>Copyright © 2021 The Apache Software Foundation. All rights reserved.