public class BytesSchemaVersion extends Object implements SchemaVersion, Comparable<BytesSchemaVersion>
| Modifier and Type | Class and Description |
|---|---|
static interface |
BytesSchemaVersion.ByteArrayComparator
This interface helps to compare byte arrays.
|
| Modifier and Type | Field and Description |
|---|---|
static BytesSchemaVersion.ByteArrayComparator |
BYTES_LEXICO_COMPARATOR
A byte array comparator based on lexicograpic ordering.
|
Empty, Latest| Modifier and Type | Method and Description |
|---|---|
byte[] |
bytes() |
int |
compareTo(BytesSchemaVersion 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.
|
static BytesSchemaVersion |
of(byte[] bytes) |
String |
toString() |
public static final BytesSchemaVersion.ByteArrayComparator BYTES_LEXICO_COMPARATOR
public byte[] bytes()
bytes in interface SchemaVersionpublic static BytesSchemaVersion of(byte[] bytes)
public byte[] get()
public int hashCode()
public int compareTo(BytesSchemaVersion that)
compareTo in interface Comparable<BytesSchemaVersion>Copyright © 2017–2022 Apache Software Foundation. All rights reserved.