com.belerweb.social.bean
Class Result<T>
java.lang.Object
com.belerweb.social.bean.Result<T>
public class Result<T>
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Result
public Result(Error error)
Result
public Result(T result)
Result
public Result(List<T> results)
success
public boolean success()
getError
public Error getError()
getResult
public T getResult()
getResults
public List<T> getResults()
parse
public static <T> Result<T> parse(String json,
Class<T> resultType)
parse
public static <T> Result<T> parse(org.json.JSONObject jsonObject,
Class<T> resultType)
parse
public static <T> List<T> parse(org.json.JSONArray jsonArray,
Class<T> resultType)
toString
public static String toString(Object obj)
parseLong
public static Long parseLong(Object obj)
parseInteger
public static Integer parseInteger(Object obj)
parseDouble
public static Double parseDouble(Object obj)
parseBoolean
public static Boolean parseBoolean(Object obj)
parseDate
public static Date parseDate(Object obj,
String pattern,
Locale locale)
parseTimeSeconds
public static Date parseTimeSeconds(Object obj)
Copyright © 2014. All Rights Reserved.