public final class Utils extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Utils.HeapSorteable |
static interface |
Utils.IndexComparator |
static interface |
Utils.IndexSearcher<T> |
| Modifier and Type | Field and Description |
|---|---|
static int |
XPRODUCT |
| Modifier and Type | Method and Description |
|---|---|
static <T> int |
binarySearch(T obj,
int length,
Utils.IndexSearcher<T> searcher) |
static void |
close(InputStream in) |
static void |
close(OutputStream out) |
static void |
close(Reader rd) |
static void |
close(Writer wt) |
static String |
getString(String str) |
static void |
heapSort(int[] numbers,
Utils.IndexComparator comparator) |
static void |
heapSort(Utils.HeapSorteable numbers,
Utils.IndexComparator comparator) |
static boolean |
isSubset(String s1,
String s2) |
static String |
mkInitCap(CharSequence word) |
static String |
myRevStrDup(String s) |
static boolean |
TestAff(String a,
char b,
int c) |
static void |
throwIOException(String resource,
Object... arguments) |
public static boolean TestAff(String a, char b, int c)
public static void close(Reader rd) throws IOException
IOExceptionpublic static void close(Writer wt) throws IOException
IOExceptionpublic static void close(InputStream in) throws IOException
IOExceptionpublic static void close(OutputStream out) throws IOException
IOExceptionpublic static String mkInitCap(CharSequence word)
public static void heapSort(int[] numbers,
Utils.IndexComparator comparator)
public static void heapSort(Utils.HeapSorteable numbers, Utils.IndexComparator comparator)
public static <T> int binarySearch(T obj,
int length,
Utils.IndexSearcher<T> searcher)
public static void throwIOException(String resource, Object... arguments) throws IOException
IOExceptionCopyright © 2020. All rights reserved.