public final class ArrayUtil extends Object
Modifier and Type | Field and Description |
---|---|
static LeoObject[] |
EMPTY_LEOOBJECTS |
static Outer[] |
EMPTY_OUTERS |
Constructor and Description |
---|
ArrayUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
mergeSort(Object[] src,
Object[] dest,
int low,
int high,
int off)
Src is the source array that starts at index 0 Dest is the (possibly
larger) array destination with a possible offset low is the index in dest
to start sorting high is the end index in dest to end sorting off is the
offset to generate corresponding low, high in src
|
static LeoObject[] |
newLeoObjectArray() |
static Outer[] |
newOuterArray() |
static OuterDesc[] |
newOuterDescArray() |
static String[] |
newStringArray() |
static LeoObject[] |
resize(LeoObject[] array,
int len) |
static Outer[] |
resize(Outer[] array,
int len) |
static OuterDesc[] |
resize(OuterDesc[] array,
int len) |
static String[] |
resize(String[] array,
int len) |
static <T> void |
sort(T[] src) |
static <T> void |
sort(T[] src,
int offset,
int len) |
public static final LeoObject[] EMPTY_LEOOBJECTS
public static final Outer[] EMPTY_OUTERS
public static Outer[] newOuterArray()
public static OuterDesc[] newOuterDescArray()
public static LeoObject[] newLeoObjectArray()
public static String[] newStringArray()
public static <T> void sort(T[] src)
public static <T> void sort(T[] src, int offset, int len)
public static void mergeSort(Object[] src, Object[] dest, int low, int high, int off)
Copyright © 2010–2015. All rights reserved.