public final class Util extends Object
| Modifier and Type | Method and Description |
|---|---|
static <K extends Enum<K>,V> |
readEnumMap(PrimitivI input,
Class<K> keyClass,
Class<V> valueClass) |
static <O> List<O> |
readList(Class<O> type,
File file) |
static <O> List<O> |
readList(Class<O> type,
InputStream is) |
static <O> List<O> |
readList(Class<O> type,
PrimitivI input) |
static <O> List<O> |
readList(Class<O> type,
String fileName) |
static <K,V> Map<K,V> |
readMap(PrimitivI input,
Class<K> keyClass,
Class<V> valueClass) |
static void |
writeList(List<?> list,
File file) |
static void |
writeList(List<?> list,
OutputStream output) |
static void |
writeList(List<?> list,
PrimitivO output) |
static void |
writeList(List<?> list,
String fileName) |
static <K,V> void |
writeMap(Map<K,V> map,
PrimitivO output) |
static int |
zigZagDecodeInt(int value) |
static long |
zigZagDecodeLong(long value) |
static int |
zigZagEncodeInt(int value) |
static long |
zigZagEncodeLong(long value) |
public static void writeList(List<?> list, String fileName) throws IOException
IOExceptionpublic static void writeList(List<?> list, File file) throws IOException
IOExceptionpublic static void writeList(List<?> list, OutputStream output)
public static <O> List<O> readList(Class<O> type, String fileName) throws IOException
IOExceptionpublic static <O> List<O> readList(Class<O> type, File file) throws IOException
IOExceptionpublic static <O> List<O> readList(Class<O> type, InputStream is)
public static <K extends Enum<K>,V> EnumMap<K,V> readEnumMap(PrimitivI input, Class<K> keyClass, Class<V> valueClass)
public static <K,V> Map<K,V> readMap(PrimitivI input, Class<K> keyClass, Class<V> valueClass)
public static long zigZagEncodeLong(long value)
public static long zigZagDecodeLong(long value)
public static int zigZagEncodeInt(int value)
public static int zigZagDecodeInt(int value)
Copyright © 2018. All rights reserved.