public class AnsjArrays extends Object
| Constructor and Description |
|---|
AnsjArrays() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends SmartForest<T>> |
binarySearch(T[] branches,
char c)
二分法查找.摘抄了jdk的东西..只不过把他的自动装箱功能给去掉了
|
static <T> T[] |
copyOfRange(T[] original,
int from,
int to) |
static <T,U> T[] |
copyOfRange(U[] original,
int from,
int to,
Class<? extends T[]> newType) |
static void |
main(String[] args) |
static void |
sort(SmartForest[] a) |
static void |
sort(SmartForest[] a,
int fromIndex,
int toIndex) |
public static <T extends SmartForest<T>> int binarySearch(T[] branches, char c)
branches - branchesc - charpublic static void main(String[] args)
public static void sort(SmartForest[] a)
public static void sort(SmartForest[] a, int fromIndex, int toIndex)
public static <T> T[] copyOfRange(T[] original,
int from,
int to)
public static <T,U> T[] copyOfRange(U[] original,
int from,
int to,
Class<? extends T[]> newType)
Copyright © 2016. All rights reserved.