Package org.nutz.castor

Examples of org.nutz.castor.Castors


  public <T> List<T> convertList(Class<T> eleType) {
    if (null == list || list.isEmpty())
      return (List<T>) list;

    List<T> re = new ArrayList<T>(list.size());
    Castors castors = Castors.me();
    for (Object obj : list)
      re.add(castors.castTo(obj, eleType));

    return re;
  }
View Full Code Here


    public <T> List<T> convertList(Class<T> eleType) {
        if (null == list || list.isEmpty())
            return (List<T>) list;

        List<T> re = new ArrayList<T>(list.size());
        Castors castors = Castors.me();
        for (Object obj : list)
            re.add(castors.castTo(obj, eleType));

        return re;
    }
View Full Code Here

TOP

Related Classes of org.nutz.castor.Castors

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.