JDK中常用工具类
集合工具类 Collections
public static <T extends Comparable<? super T>> void sort(List<T> var0)
public static <T> int binarySearch(List<? extends Comparable<? super T>> var0, T var1)
public static void reverse(List<?> var0)
public static <T extends Object & Comparable<? super T>> T min(Collection<? extends T> var0)
public static <T extends Object & Comparable<? super T>> T max(Collection<? extends T> var0)
数组工具类 Arrays
public static void sort(byte[] var0){}
public static int binarySearch(byte[] var0, byte var1){}
public static boolean equals(byte[] var0, byte[] var1){}
public static void fill(int[] var0, int var1){}
public static int[] copyOf(int[] var0, int var1){}
public static int hashCode(int[] var0){}
public static String toString(int[] var0){}
对象工具类 Objects
public static boolean equals(Object var0, Object var1)
public static boolean isNull(Object var0)
public static boolean nonNull(Object var0)
public static <T> T requireNonNull(T var0, String var1)
文件工具类 Files
public static InputStream newInputStream(Path var0, OpenOption... var1) throws IOException{}
public static OutputStream newOutputStream(Path var0, OpenOption... var1) throws IOException {}
public static BufferedReader newBufferedReader(Path var0) throws IOException {}
public static BufferedWriter newBufferedWriter(Path var0, Charset var1, OpenOption... var2) throws IOException{}
public static Stream<String> lines(Path var0) throws IOException{}
public static Path createFile(Path var0, FileAttribute<?>... var1) throws IOException{}
public static Path createDirectory(Path var0, FileAttribute<?>... var1) throws IOException{}
public static void delete(Path var0) throws IOException{}
public static boolean deleteIfExists(Path var0) throws IOException{}
public static long copy(Path var0, OutputStream var1) throws IOException{}
public static Path move(Path var0, Path var1, CopyOption... var2) throws IOException{}
路径工具类 Paths
TimeUnit 线程sleet
TimeUnit.HOURS.sleep(5);
TimeUnit.MINUTES.sleep(5);
TimeUnit.SECONDS.sleep(5);
System
public static native long currentTimeMillis()
public static void exit(int var0){}
public static native void arraycopy(Object var0, int var1, Object var2, int var3, int var4)