net.csdn.common.collections
Class WowCollections
java.lang.Object
net.csdn.common.collections.WowCollections
public class WowCollections
- extends Object
BlogInfo: WilliamZhu
Date: 12-5-17
Time: 下午3:27
|
Method Summary |
static Map |
doubleListToMap(List keys,
List values)
|
static Boolean |
getBoolean(Map map,
String key)
|
static Date |
getDate(Map map,
String key)
|
static long |
getDateAsLong(Map map,
String key)
|
static int |
getInt(Map map,
String key)
|
static long |
getLong(Map map,
String key)
|
static Map |
getMap(Map map,
String key)
|
static String |
getString(Map map,
String key)
|
static String |
getStringNoNull(Map map,
String key)
|
static Set |
hashSet(int[] array)
|
static Set |
hashSet(Object[] array)
|
static boolean |
isEmpty(Collection collection)
|
static boolean |
isEmpty(String str)
|
static boolean |
isNull(Object obj)
|
static
|
iterate_list(List<K> list,
WowCollections.ListIterator<K> listIterator)
|
static
|
iterate_map(Map<K,V> map,
WowCollections.MapIterator mapIterator)
|
static
|
iterateList(List<K> list,
WowCollections.ListIterator<K> listIterator)
|
static
|
iterateMap(Map<K,V> map,
WowCollections.MapIterator mapIterator)
|
static String |
join(Collection collection)
|
static String |
join(Collection collection,
String split)
|
static String |
join(Collection collection,
String split,
String wrapper)
|
static String |
join(int[] arrays,
String split)
|
static String |
join(Object[] arrays,
String split)
|
static String |
join(Object[] collection,
String split,
String wrapper)
|
static
|
list(T... arrays)
|
static Map |
map(Object... arrays)
|
static
|
newHashSet(T... arrays)
|
static List |
project(List<Map> list,
String key)
|
static List |
projectByMethod(List list,
String method,
Object... params)
|
static
|
projectionColumn(List<Map> maps,
String column)
|
static Map |
selectMap(Map map,
String... keys)
|
static Map |
selectMapWithAliasName(Map map,
String... keys)
|
static Map |
selectMapWithAliasNameInclude(Map map,
String... keys)
|
static Iterable<String> |
split(String s,
String seperator)
|
static List<String> |
split2(String s,
String seperator)
|
static List<Integer> |
split2IntoDouble(String s,
String seperator)
|
static List<Integer> |
split2IntoInt(String s,
String seperator)
|
static List<Integer> |
split2IntoLong(String s,
String seperator)
|
static List<String> |
split2SkipEmpty(String s,
String seperator)
|
static List<List> |
splitList(List list,
int size)
|
static Iterable<String> |
splitWithRegex(String s,
String seperatorPattern)
|
static List |
subList(List temp,
int size)
|
static List |
subList(List temp,
int start,
int size)
|
static List |
toList(Object[] array)
|
static void |
uniqList(List list)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY_MAP
public static final Map EMPTY_MAP
EMPTY_LIST
public static final List EMPTY_LIST
WowCollections
public WowCollections()
newHashSet
public static <T> Set<T> newHashSet(T... arrays)
isEmpty
public static boolean isEmpty(Collection collection)
isEmpty
public static boolean isEmpty(String str)
isNull
public static boolean isNull(Object obj)
selectMap
public static Map selectMap(Map map,
String... keys)
selectMapWithAliasName
public static Map selectMapWithAliasName(Map map,
String... keys)
selectMapWithAliasNameInclude
public static Map selectMapWithAliasNameInclude(Map map,
String... keys)
map
public static Map map(Object... arrays)
list
public static <T> List<T> list(T... arrays)
projectionColumn
public static <T> List<T> projectionColumn(List<Map> maps,
String column)
join
public static String join(Collection collection,
String split)
join
public static String join(Collection collection)
splitList
public static List<List> splitList(List list,
int size)
project
public static List project(List<Map> list,
String key)
projectByMethod
public static List projectByMethod(List list,
String method,
Object... params)
doubleListToMap
public static Map doubleListToMap(List keys,
List values)
join
public static String join(Collection collection,
String split,
String wrapper)
join
public static String join(Object[] collection,
String split,
String wrapper)
getString
public static String getString(Map map,
String key)
getStringNoNull
public static String getStringNoNull(Map map,
String key)
getDate
public static Date getDate(Map map,
String key)
getDateAsLong
public static long getDateAsLong(Map map,
String key)
getInt
public static int getInt(Map map,
String key)
getLong
public static long getLong(Map map,
String key)
getMap
public static Map getMap(Map map,
String key)
getBoolean
public static Boolean getBoolean(Map map,
String key)
hashSet
public static Set hashSet(Object[] array)
toList
public static List toList(Object[] array)
hashSet
public static Set hashSet(int[] array)
join
public static String join(Object[] arrays,
String split)
join
public static String join(int[] arrays,
String split)
split
public static Iterable<String> split(String s,
String seperator)
split2
public static List<String> split2(String s,
String seperator)
split2SkipEmpty
public static List<String> split2SkipEmpty(String s,
String seperator)
split2IntoInt
public static List<Integer> split2IntoInt(String s,
String seperator)
split2IntoDouble
public static List<Integer> split2IntoDouble(String s,
String seperator)
split2IntoLong
public static List<Integer> split2IntoLong(String s,
String seperator)
splitWithRegex
public static Iterable<String> splitWithRegex(String s,
String seperatorPattern)
iterateMap
public static <K,V> List iterateMap(Map<K,V> map,
WowCollections.MapIterator mapIterator)
iterate_map
public static <K,V> List iterate_map(Map<K,V> map,
WowCollections.MapIterator mapIterator)
subList
public static List subList(List temp,
int size)
subList
public static List subList(List temp,
int start,
int size)
uniqList
public static void uniqList(List list)
iterateList
public static <K> List iterateList(List<K> list,
WowCollections.ListIterator<K> listIterator)
iterate_list
public static <K> List iterate_list(List<K> list,
WowCollections.ListIterator<K> listIterator)
Copyright © 2014. All Rights Reserved.