public abstract class Booleans extends Object
| 限定符和类型 | 类和说明 |
|---|---|
private static class |
Booleans.LexicographicalComparator |
| 限定符和类型 | 字段和说明 |
|---|---|
static boolean[] |
EMPTY_ARRAY |
static Boolean[] |
EMPTY_OBJECT_ARRAY |
private static List<Character> |
trueOrFalseChars |
private static List<String> |
trueOrFalses |
| 构造器和说明 |
|---|
Booleans() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean[] |
add(boolean[] array,
boolean a) |
static void |
addTrueAndFalse(char trueChar,
char falseChar) |
static void |
addTrueAndFalse(String trueString,
String falseString) |
static boolean[] |
clone(boolean[] array) |
static int |
compare(boolean a,
boolean b) |
static boolean[] |
concat(boolean[] left,
boolean[] right) |
static boolean |
contains(boolean[] a,
boolean b) |
static boolean |
containsAll(boolean[] left,
boolean[] right) |
static boolean[] |
copy(boolean[] array) |
static boolean[] |
copy(boolean[] array,
int length) |
static boolean[] |
copy(boolean[] array,
int startIndex,
int length) |
static boolean[] |
copy(boolean[] array,
int startIndex,
int length,
boolean defaultValue) |
static boolean[] |
create(int length) |
static boolean[] |
create(int length,
boolean defaultValue) |
static boolean[][] |
create(int yLength,
int xLength) |
static boolean[][] |
create(int yLength,
int xLength,
boolean defaultValue) |
static boolean |
deepEquals(boolean[] left,
boolean[] right) |
static int |
deepHashCode(boolean[] args) |
static Comparator<boolean[]> |
defaultComparator() |
static boolean[] |
ensureCapacity(boolean[] array,
int index) |
static boolean[] |
expandCapacity(boolean[] array) |
static boolean[] |
expandCapacity(boolean[] array,
int size) |
private static void |
hardCopy(boolean[] src,
int srcFrom,
boolean[] dest,
int destFrom,
int length) |
static int |
hashCode(boolean arg) |
private static int |
indexFor(char arg) |
private static int |
indexFor(String arg) |
static int |
indexOf(boolean[] a,
boolean b) |
static int |
indexOf(boolean[] a,
boolean b,
int start,
int end) |
static boolean |
isEmpty(boolean[] args) |
static boolean |
isNotEmpty(boolean[] args) |
static boolean |
isSameLength(boolean[] left,
boolean[] right) |
static boolean |
isSubarray(boolean[] left,
boolean[] right) |
static String |
join(boolean[] array) |
static String |
join(boolean[] left,
boolean[] right,
String delimiter) |
static String |
join(boolean[] left,
boolean[] right,
String conjunction,
String delimiter) |
static String |
join(boolean[] array,
String delimiter) |
static int |
lastIndexOf(boolean[] a,
boolean b) |
static int |
lastIndexOf(boolean[] a,
boolean b,
int start) |
static int |
length(boolean[] array) |
static boolean |
notContains(boolean[] a,
boolean b) |
static boolean |
parse(char arg) |
static boolean |
parse(String arg) |
static boolean[] |
parseMany(char[] args) |
static boolean[] |
parseMany(char[] args,
boolean thrown) |
static boolean[] |
parseMany(String[] args) |
static boolean[] |
parseMany(String[] args,
boolean thrown) |
static boolean[] |
remove(boolean[] array,
boolean a) |
static boolean[] |
removeAt(boolean[] array,
int index) |
static boolean |
same(boolean[] array) |
static boolean[] |
toArray(Collection<Boolean> c) |
static List<Boolean> |
toList(boolean[] array) |
static boolean[] |
toPrimitives(Boolean[] array) |
static String |
toString(Boolean result) |
static String |
toString(boolean[] array,
String delim) |
static String |
toString(Boolean result,
String defaultValue) |
static String |
toString(Boolean result,
String yes,
String no,
String defaultValue) |
static String[] |
toStringArray(boolean[] args) |
static String |
toStringOnOff(Boolean result) |
static String |
toStringOnOff(Boolean result,
String defaultValue) |
static String |
toStringYesNo(Boolean result) |
static String |
toStringYesNo(Boolean result,
String defaultValue) |
static Boolean[] |
toWrappers(boolean[] array) |
static Boolean |
valueOf(Character arg) |
static Boolean |
valueOf(Character arg,
Boolean defaultValue) |
static Boolean |
valueOf(Number n) |
static Boolean |
valueOf(Number n,
Boolean defaultValue) |
static Boolean |
valueOf(String arg) |
static Boolean |
valueOf(String arg,
Boolean defaultValue) |
static Boolean[] |
valuesOf(String[] args) |
static Boolean[] |
valuesOf(String[] args,
Boolean defaultValue) |
public static final boolean[] EMPTY_ARRAY
public static final Boolean[] EMPTY_OBJECT_ARRAY
public static void addTrueAndFalse(char trueChar,
char falseChar)
public static boolean[] clone(boolean[] array)
public static int length(boolean[] array)
public static boolean[][] create(int yLength,
int xLength)
public static boolean[][] create(int yLength,
int xLength,
boolean defaultValue)
public static boolean[] create(int length)
public static boolean[] create(int length,
boolean defaultValue)
public static boolean isNotEmpty(boolean[] args)
public static boolean isEmpty(boolean[] args)
public static boolean notContains(boolean[] a,
boolean b)
public static boolean contains(boolean[] a,
boolean b)
public static int indexOf(boolean[] a,
boolean b)
public static int indexOf(boolean[] a,
boolean b,
int start,
int end)
public static int lastIndexOf(boolean[] a,
boolean b)
public static int lastIndexOf(boolean[] a,
boolean b,
int start)
public static boolean[] concat(boolean[] left,
boolean[] right)
public static boolean[] add(boolean[] array,
boolean a)
public static boolean[] remove(boolean[] array,
boolean a)
public static boolean[] removeAt(boolean[] array,
int index)
public static boolean[] copy(boolean[] array)
public static boolean[] copy(boolean[] array,
int length)
public static boolean[] copy(boolean[] array,
int startIndex,
int length)
public static boolean[] copy(boolean[] array,
int startIndex,
int length,
boolean defaultValue)
private static void hardCopy(boolean[] src,
int srcFrom,
boolean[] dest,
int destFrom,
int length)
public static Boolean[] toWrappers(boolean[] array)
public static boolean[] toPrimitives(Boolean[] array)
public static boolean[] ensureCapacity(boolean[] array,
int index)
public static boolean[] expandCapacity(boolean[] array)
public static boolean[] expandCapacity(boolean[] array,
int size)
public static String join(boolean[] array)
public static String join(boolean[] left, boolean[] right, String conjunction, String delimiter)
public static boolean[] toArray(Collection<Boolean> c)
public static int hashCode(boolean arg)
public static boolean deepEquals(boolean[] left,
boolean[] right)
public static int deepHashCode(boolean[] args)
private static int indexFor(String arg)
private static int indexFor(char arg)
public static boolean parse(char arg)
public static boolean[] parseMany(char[] args)
public static boolean[] parseMany(char[] args,
boolean thrown)
public static boolean parse(String arg)
public static boolean[] parseMany(String[] args)
public static boolean[] parseMany(String[] args, boolean thrown)
public static String[] toStringArray(boolean[] args)
public static boolean isSameLength(boolean[] left,
boolean[] right)
public static boolean isSubarray(boolean[] left,
boolean[] right)
public static boolean containsAll(boolean[] left,
boolean[] right)
public static boolean same(boolean[] array)
public static Comparator<boolean[]> defaultComparator()
public static int compare(boolean a,
boolean b)
Copyright © 2020. All rights reserved.