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