public class Bytes extends Object implements Comparable<Bytes>
| 构造器和说明 |
|---|
Bytes(byte[] bytes)
Create a Bytes using the byte array.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(Bytes that) |
boolean |
equals(Object other) |
byte[] |
get()
Get the data from the Bytes.
|
int |
hashCode()
The hashcode is cached except for the case where it is computed as 0, in which
case we compute the hashcode on every call.
|
String |
toString() |
static Bytes |
wrap(byte[] bytes) |
public Bytes(byte[] bytes)
bytes - This array becomes the backing storage for the object.public static Bytes wrap(byte[] bytes)
public byte[] get()
public int hashCode()
public int compareTo(Bytes that)
compareTo 在接口中 Comparable<Bytes>Copyright © 2021. All rights reserved.