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