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