public final class AsciiBytes extends Object
| 构造器和说明 |
|---|
AsciiBytes(byte[] bytes)
Create a new
AsciiBytes from the specified bytes. |
AsciiBytes(byte[] bytes,
int offset,
int length)
Create a new
AsciiBytes from the specified bytes. |
AsciiBytes(String string)
Create a new
AsciiBytes from the specified String. |
| 限定符和类型 | 方法和说明 |
|---|---|
AsciiBytes |
append(AsciiBytes asciiBytes) |
AsciiBytes |
append(byte[] bytes) |
AsciiBytes |
append(String string) |
boolean |
endsWith(AsciiBytes postfix) |
boolean |
equals(Object obj) |
int |
hashCode() |
static int |
hashCode(int hash,
String string) |
static int |
hashCode(String string) |
int |
length() |
boolean |
startsWith(AsciiBytes prefix) |
AsciiBytes |
substring(int beginIndex) |
AsciiBytes |
substring(int beginIndex,
int endIndex) |
String |
toString() |
public AsciiBytes(String string)
AsciiBytes from the specified String.string - the source stringpublic AsciiBytes(byte[] bytes)
AsciiBytes from the specified bytes. NOTE: underlying bytes
are not expected to change.bytes - the source bytespublic AsciiBytes(byte[] bytes,
int offset,
int length)
AsciiBytes from the specified bytes. NOTE: underlying bytes
are not expected to change.bytes - the source bytesoffset - the offsetlength - the lengthpublic int length()
public boolean startsWith(AsciiBytes prefix)
public boolean endsWith(AsciiBytes postfix)
public AsciiBytes substring(int beginIndex)
public AsciiBytes substring(int beginIndex, int endIndex)
public AsciiBytes append(String string)
public AsciiBytes append(AsciiBytes asciiBytes)
public AsciiBytes append(byte[] bytes)
public static int hashCode(String string)
public static int hashCode(int hash,
String string)
Copyright © 2019. All rights reserved.