public final class AMQShortString extends Object implements Comparable<AMQShortString>
| Modifier and Type | Field and Description |
|---|---|
static AMQShortString |
EMPTY_STRING |
static int |
MAX_LENGTH
The maximum number of octets in AMQ short string as defined in AMQP specification
|
| Constructor and Description |
|---|
AMQShortString(byte[] data) |
AMQShortString(byte[] data,
int offset,
int length) |
AMQShortString(String string) |
| Modifier and Type | Method and Description |
|---|---|
char |
charAt(int index) |
int |
compareTo(AMQShortString name) |
boolean |
contains(byte b) |
boolean |
equals(AMQShortString otherString) |
boolean |
equals(Object o) |
byte[] |
getBytes() |
int |
hashCode() |
int |
length()
Get the length of the short string
|
static AMQShortString |
readAMQShortString(ByteBuffer buffer) |
int |
toIntValue() |
String |
toString() |
static String |
toString(AMQShortString amqShortString) |
static AMQShortString |
validValueOf(Object obj) |
static AMQShortString |
valueOf(Object obj) |
static AMQShortString |
valueOf(String obj) |
void |
writeToBuffer(ByteBuffer buffer) |
public static final int MAX_LENGTH
public static final AMQShortString EMPTY_STRING
public AMQShortString(byte[] data)
public AMQShortString(String string)
public AMQShortString(byte[] data,
int offset,
int length)
public static AMQShortString readAMQShortString(ByteBuffer buffer)
public int length()
public char charAt(int index)
public byte[] getBytes()
public void writeToBuffer(ByteBuffer buffer)
public boolean equals(AMQShortString otherString)
public int compareTo(AMQShortString name)
compareTo in interface Comparable<AMQShortString>public int toIntValue()
public boolean contains(byte b)
public static AMQShortString validValueOf(Object obj)
public static AMQShortString valueOf(Object obj)
public static AMQShortString valueOf(String obj)
public static String toString(AMQShortString amqShortString)
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.