@FunctionalInterface public interface ByteArrayComparator
Modifier and Type | Method and Description |
---|---|
int |
compare(byte[] b1,
int s1,
int l1,
byte[] b2,
int s2,
int l2)
Compares the two byte array regions (as unsigned bytes), and returns their sign value.
|
default boolean |
equals(byte[] b1,
int s1,
int l1,
byte[] b2,
int s2,
int l2)
Returns whether the each byte array region is equivalent or not.
|
default boolean equals(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)
b1
- the first byte arrays1
- the starting offset in the first byte array (in bytes)l1
- the length in the first byte array (in bytes)b2
- the second byte arrays2
- the starting offset in the second byte array (in bytes)l2
- the length in the second byte array (in bytes)true
if the each byte array range is equivalent, otherwise false
int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)
b1
- the first byte arrays1
- the starting offset in the first byte array (in bytes)l1
- the length in the first byte array (in bytes)b2
- the second byte arrays2
- the starting offset in the second byte array (in bytes)l2
- the length in the second byte array (in bytes)< 0
, = 0
, or > 0
as the first byte array range is less than, equal to, or
greater than the second rangeCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.