public abstract class Bytes extends Object
| 限定符和类型 | 类和说明 |
|---|---|
private static class |
Bytes.LexicographicalComparator |
| 限定符和类型 | 字段和说明 |
|---|---|
private static LruMap<String,Byte> |
cache |
static byte[] |
EMPTY_ARRAY |
static Byte[] |
EMPTY_OBJECT_ARRAY |
| 构造器和说明 |
|---|
Bytes() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
add(byte[] array,
byte a) |
static double |
avg(byte[] array) |
static byte |
cast(BigDecimal value) |
static byte |
cast(BigInteger value) |
static byte |
cast(boolean b) |
static byte |
cast(char c) |
static byte |
cast(long value) |
static byte |
cast(Number value) |
static byte[] |
casts(boolean[] value) |
static byte[] |
casts(char[] value) |
static byte[] |
casts(char[] value,
boolean thrown) |
static byte[] |
casts(double[] value) |
static byte[] |
casts(double[] value,
boolean thrown) |
static byte[] |
casts(float[] value) |
static byte[] |
casts(float[] value,
boolean thrown) |
static byte[] |
casts(int[] value) |
static byte[] |
casts(int[] value,
boolean thrown) |
static byte[] |
casts(long[] value) |
static byte[] |
casts(long[] value,
boolean thrown) |
static byte[] |
casts(Number[] array) |
static byte[] |
casts(Number[] array,
boolean thrown) |
static byte[] |
casts(short[] value) |
static byte[] |
casts(short[] value,
boolean thrown) |
static void |
clearCache() |
static byte[] |
clone(byte[] array) |
static int |
compare(byte a,
byte b) |
static byte[] |
concat(byte[] left,
byte[] right) |
static boolean |
contains(byte[] a,
byte b) |
static boolean |
containsAll(byte[] left,
byte[] right) |
static byte[] |
copy(byte[] array) |
static byte[] |
copy(byte[] array,
int length) |
static byte[] |
copy(byte[] array,
int startIndex,
int length) |
static byte[] |
copy(byte[] array,
int startIndex,
int length,
byte defaultValue) |
static byte[] |
create(int length,
byte defaultValue) |
static byte[][] |
create(int yLength,
int xLength,
byte defaultValue) |
static boolean |
deepEquals(byte[] left,
byte[] right) |
static int |
deepHashCode(byte[] args) |
static Comparator<byte[]> |
defaultComparator() |
static byte[] |
ensureCapacity(byte[] array,
int index) |
static byte[] |
expandCapacity(byte[] array) |
static byte[] |
expandCapacity(byte[] array,
int size) |
private static void |
hardCopy(byte[] src,
int srcFrom,
byte[] dest,
int destFrom,
int length) |
static int |
hashCode(byte arg) |
static int |
indexOf(byte[] a,
byte b) |
static int |
indexOf(byte[] a,
byte b,
int start) |
static int |
indexOf(byte[] a,
byte b,
int start,
int end) |
static byte[] |
intersect(byte[] left,
byte[] right) |
static boolean |
isEmpty(byte[] args) |
static boolean |
isEven(byte value) |
static boolean |
isEvens(byte[] values) |
static boolean |
isNotEmpty(byte[] args) |
static boolean |
isOdd(byte value) |
static boolean |
isOdds(byte[] values) |
static boolean |
isSameLength(byte[] left,
byte[] right) |
static boolean |
isSerial(byte[] array) |
static boolean |
isSerial(byte[] array,
int n) |
static boolean |
isSubarray(byte[] left,
byte[] right) |
static String |
join(byte[] array) |
static String |
join(byte[] left,
byte[] right,
String delimiter) |
static String |
join(byte[] left,
byte[] right,
String conjunction,
String delimiter) |
static String |
join(byte[] array,
String delimiter) |
static int |
lastIndexOf(byte[] a,
byte b) |
static int |
lastIndexOf(byte[] a,
byte b,
int start) |
static void |
leftScroll(byte[] src,
int n) |
static int |
length(byte[] array) |
static int |
max(byte[] array) |
private static void |
mergeSort(byte[] src,
byte[] dest,
int low,
int high,
boolean asc) |
static int |
min(byte[] array) |
static byte[] |
minus(byte[] left,
byte[] right) |
static boolean |
notContains(byte[] a,
byte b) |
static byte |
parse(String str) |
static byte[] |
parseMany(String[] strings) |
static byte[] |
parseMany(String[] strings,
boolean thrown) |
private static byte |
parseStrictly(String str) |
static byte[] |
remove(byte[] array,
byte a) |
static byte[] |
removeAt(byte[] array,
int index) |
static void |
reverse(byte[] src) |
static void |
rightScroll(byte[] src,
int n) |
private static void |
rightScroll(byte[] src,
int n,
int m) |
static boolean |
same(byte[] array) |
static void |
shuffle(byte[] src) |
static void |
shuffle(byte[] src,
Random rn) |
static void |
sort(byte[] array,
boolean asc) |
private static void |
sort(byte[] array,
int low,
int high,
boolean asc) |
static int |
sum(byte[] array) |
static void |
swap(byte[] x,
int a,
int b) |
static byte[] |
toArray(Collection<?> collection) |
static boolean |
toBoolean(byte[] b) |
static byte[] |
toByteArray(ByteBuffer bb) |
static byte[] |
toByteArray(ByteBuffer bb,
byte[] defaultValue) |
static byte[] |
toBytes(boolean b) |
static byte[] |
toBytes(char c) |
static byte[] |
toBytes(double d) |
static byte[] |
toBytes(float f) |
static byte[] |
toBytes(int i) |
static byte[] |
toBytes(long l) |
static byte[] |
toBytes(short s) |
static char |
toChar(byte[] b) |
static double |
toDouble(byte[] b) |
static float |
toFloat(byte[] b) |
static int |
toInt(byte[] b) |
static List<Byte> |
toList(byte[] array) |
static long |
toLong(byte[] b) |
static byte[] |
toPrimitives(Byte[] array) |
static short |
toShort(byte[] b) |
static String |
toString(byte[] array) |
static String[] |
toStringArray(byte[] args,
DecimalFormat df) |
static Byte[] |
toWrappers(boolean[] value) |
static Byte[] |
toWrappers(byte[] array) |
static Byte[] |
toWrappers(char[] value) |
static byte[] |
union(byte[] left,
byte[] right) |
static byte[] |
unionAll(byte[] left,
byte[] right) |
static Byte |
valueOf(Boolean b) |
static Byte |
valueOf(Boolean b,
Byte defaultValue) |
static Byte |
valueOf(Character ch) |
static Byte |
valueOf(Character ch,
Byte defaultValue) |
static Byte |
valueOf(Number n) |
static Byte[] |
valueOf(Number[] array) |
static Byte[] |
valueOf(Number[] array,
Byte defaultValue) |
static Byte |
valueOf(Number n,
Byte defaultValue) |
static Byte |
valueOf(String str) |
static Byte[] |
valueOf(String[] strings) |
static Byte[] |
valueOf(String[] strings,
Byte defaultValue) |
static Byte |
valueOf(String str,
Byte defaultValue) |
public static final byte[] EMPTY_ARRAY
public static final Byte[] EMPTY_OBJECT_ARRAY
public static void clearCache()
public static byte[] clone(byte[] array)
public static int length(byte[] array)
public static byte[][] create(int yLength,
int xLength,
byte defaultValue)
public static byte[] create(int length,
byte defaultValue)
public static boolean isNotEmpty(byte[] args)
public static boolean isEmpty(byte[] args)
public static boolean notContains(byte[] a,
byte b)
public static boolean contains(byte[] a,
byte b)
public static int indexOf(byte[] a,
byte b)
public static int indexOf(byte[] a,
byte b,
int start)
public static int indexOf(byte[] a,
byte b,
int start,
int end)
public static int lastIndexOf(byte[] a,
byte b)
public static int lastIndexOf(byte[] a,
byte b,
int start)
public static byte[] concat(byte[] left,
byte[] right)
public static byte[] add(byte[] array,
byte a)
public static byte[] remove(byte[] array,
byte a)
public static byte[] removeAt(byte[] array,
int index)
public static byte[] copy(byte[] array)
public static byte[] copy(byte[] array,
int length)
public static byte[] copy(byte[] array,
int startIndex,
int length)
public static byte[] copy(byte[] array,
int startIndex,
int length,
byte defaultValue)
private static void hardCopy(byte[] src,
int srcFrom,
byte[] dest,
int destFrom,
int length)
public static Byte[] toWrappers(char[] value)
public static Byte[] toWrappers(boolean[] value)
public static Byte[] toWrappers(byte[] array)
public static byte[] toPrimitives(Byte[] array)
public static byte[] ensureCapacity(byte[] array,
int index)
public static byte[] expandCapacity(byte[] array)
public static byte[] expandCapacity(byte[] array,
int size)
public static int max(byte[] array)
public static int min(byte[] array)
public static int sum(byte[] array)
public static double avg(byte[] array)
public static String toString(byte[] array)
public static String join(byte[] array)
public static void swap(byte[] x,
int a,
int b)
private static void sort(byte[] array,
int low,
int high,
boolean asc)
public static void sort(byte[] array,
boolean asc)
private static void mergeSort(byte[] src,
byte[] dest,
int low,
int high,
boolean asc)
public static byte[] unionAll(byte[] left,
byte[] right)
public static byte[] union(byte[] left,
byte[] right)
public static byte[] minus(byte[] left,
byte[] right)
public static byte[] intersect(byte[] left,
byte[] right)
public static byte[] toArray(Collection<?> collection)
public static void reverse(byte[] src)
public static int hashCode(byte arg)
public static boolean deepEquals(byte[] left,
byte[] right)
public static byte[] parseMany(String[] strings)
public static byte[] parseMany(String[] strings, boolean thrown)
public static byte parse(String str)
private static byte parseStrictly(String str)
public static byte[] casts(int[] value)
public static byte[] casts(int[] value,
boolean thrown)
public static byte[] casts(short[] value)
public static byte[] casts(short[] value,
boolean thrown)
public static byte[] casts(long[] value)
public static byte[] casts(long[] value,
boolean thrown)
public static byte[] casts(float[] value)
public static byte[] casts(float[] value,
boolean thrown)
public static byte[] casts(double[] value)
public static byte[] casts(double[] value,
boolean thrown)
public static byte cast(boolean b)
public static byte[] casts(boolean[] value)
public static byte[] casts(char[] value)
public static byte[] casts(char[] value,
boolean thrown)
public static byte cast(char c)
public static byte cast(Number value)
public static byte cast(long value)
public static byte cast(BigDecimal value)
public static byte cast(BigInteger value)
public static byte[] casts(Number[] array)
public static byte[] casts(Number[] array, boolean thrown)
public static int deepHashCode(byte[] args)
public static String[] toStringArray(byte[] args, DecimalFormat df)
public static boolean isEven(byte value)
public static boolean isEvens(byte[] values)
public static boolean isOdds(byte[] values)
public static boolean isOdd(byte value)
public static boolean isSameLength(byte[] left,
byte[] right)
public static boolean same(byte[] array)
public static boolean isSerial(byte[] array)
public static boolean isSerial(byte[] array,
int n)
public static boolean isSubarray(byte[] left,
byte[] right)
public static boolean containsAll(byte[] left,
byte[] right)
public static void leftScroll(byte[] src,
int n)
public static void rightScroll(byte[] src,
int n)
private static void rightScroll(byte[] src,
int n,
int m)
public static void shuffle(byte[] src)
public static void shuffle(byte[] src,
Random rn)
public static byte[] toBytes(boolean b)
public static boolean toBoolean(byte[] b)
public static byte[] toBytes(char c)
public static char toChar(byte[] b)
public static byte[] toBytes(short s)
public static short toShort(byte[] b)
public static byte[] toBytes(int i)
public static int toInt(byte[] b)
public static byte[] toBytes(long l)
public static long toLong(byte[] b)
public static byte[] toBytes(double d)
public static byte[] toBytes(float f)
public static float toFloat(byte[] b)
public static double toDouble(byte[] b)
public static byte[] toByteArray(ByteBuffer bb)
public static byte[] toByteArray(ByteBuffer bb, byte[] defaultValue)
public static Comparator<byte[]> defaultComparator()
public static int compare(byte a,
byte b)
Copyright © 2020. All rights reserved.