net.csdn.modules.thrift
Class ThriftApplication

java.lang.Object
  extended by net.csdn.modules.thrift.ThriftApplication

public class ThriftApplication
extends Object

5/27/13 WilliamZhu(allwefantasy@gmail.com)


Constructor Summary
ThriftApplication()
           
 
Method Summary
static Map aliasParamKeys(Map params, String... keys)
           
static Map double_list_to_map(List keys, List values)
           
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 String getString(Map map, String key)
           
static String getStringNoNull(Map map, String key)
           
static Set hashSet(int[] array)
           
static Set hashSet(Object[] array)
           
 boolean isNull(Object key)
           
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 jsonArrayToList(net.sf.json.JSONArray jsonArray)
           
static
<T> List<T>
list(T... arrays)
           
static Map map(Object... arrays)
           
static
<T> Set<T>
newHashSet(T... arrays)
           
static
<T> T
or(T a, T b)
           
static Map paramByKeys(Map map, String... keys)
           
static List project(List<Map> list, String key)
           
static List projectByMethod(List list, String method, Object... params)
           
static
<T> List<T>
projectionColumn(List<Map> maps, String column)
           
static Pattern regEx(String reg)
           
static Pattern RegEx(String reg)
           
static Map selectMap(Map map, String... keys)
           
static Map selectMapWithAliasName(Map map, String... keys)
           
static Map selectMapWithAliasNameInclude(Map map, String... keys)
           
<T> T
service(Class<T> clzz)
           
 net.csdn.common.time.NumberExtendedForTime time(int number)
           
 net.csdn.common.time.NumberExtendedForTime time(long number)
           
static List toList(Object[] array)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThriftApplication

public ThriftApplication()
Method Detail

newHashSet

public static <T> Set<T> newHashSet(T... arrays)

selectMap

public static Map selectMap(Map map,
                            String... keys)

paramByKeys

public static Map paramByKeys(Map map,
                              String... keys)

selectMapWithAliasName

public static Map selectMapWithAliasName(Map map,
                                         String... keys)

aliasParamKeys

public static Map aliasParamKeys(Map params,
                                 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)

project

public static List project(List<Map> list,
                           String key)

join

public static String join(Collection collection,
                          String split)

join

public static String join(Collection collection)

projectByMethod

public static List projectByMethod(List list,
                                   String method,
                                   Object... params)

double_list_to_map

public static Map double_list_to_map(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)

hashSet

public static Set hashSet(Object[] array)

toList

public static List toList(Object[] array)

hashSet

public static Set hashSet(int[] array)

jsonArrayToList

public static List jsonArrayToList(net.sf.json.JSONArray jsonArray)

join

public static String join(Object[] arrays,
                          String split)

join

public static String join(int[] arrays,
                          String split)

or

public static <T> T or(T a,
                       T b)

selectMapWithAliasNameInclude

public static Map selectMapWithAliasNameInclude(Map map,
                                                String... keys)

RegEx

public static Pattern RegEx(String reg)

regEx

public static Pattern regEx(String reg)

isNull

public boolean isNull(Object key)

service

public <T> T service(Class<T> clzz)

time

public net.csdn.common.time.NumberExtendedForTime time(int number)

time

public net.csdn.common.time.NumberExtendedForTime time(long number)


Copyright © 2014. All Rights Reserved.