public class SpgeedUtils extends Object
| Constructor and Description |
|---|
SpgeedUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
convertToNumber(Object v,
Class elementType) |
static Optional<Class> |
getElementType(Type c) |
static String |
getTimer(long nb)
Convert an amount of time in ms into a String
|
static <T,C extends Chunk<T>> |
newChunk(Class<C> returnType,
Class<T> elementType,
long fetch,
long first,
long next,
long total) |
static Collection |
newCollectionInstance(Class returnType) |
static Long |
parsePeriod(String period)
Convert and parse the period like "1h 2m 3s 400ms" to ms
|
static boolean |
returningArray(Class returnType) |
static boolean |
returningChunk(Class returnType) |
static boolean |
returningCollection(Class returnType) |
static boolean |
returningFacets(Class returnType) |
static boolean |
returningPrimitive(Class elementType) |
public static Collection newCollectionInstance(Class returnType)
public static boolean returningChunk(Class returnType)
public static boolean returningFacets(Class returnType)
public static boolean returningCollection(Class returnType)
public static boolean returningArray(Class returnType)
public static boolean returningPrimitive(Class elementType)
public static <T,C extends Chunk<T>> C newChunk(Class<C> returnType, Class<T> elementType, long fetch, long first, long next, long total)
public static String getTimer(long nb)
nb - Amout of time in msCopyright © 2017–2020 CodeLutin. All rights reserved.