Package org.encuestame.utils.web

Examples of org.encuestame.utils.web.HashTagBean


     * @return
     */
    public static List<HashTagBean> createHashTagBeansList(final String[] arrayHashTags) {
        final List<HashTagBean> tagBeanlist = new ArrayList<HashTagBean>();
        for (int i = 0; i < arrayHashTags.length; i++) {
            final HashTagBean itemTagBean = new HashTagBean();
            itemTagBean.setHashTagName(arrayHashTags[i]);
            tagBeanlist.add(itemTagBean);
        }
        return tagBeanlist;
    }
View Full Code Here


     * @param hashTag
     *            name
     * @return
     */
    public static final HashTagBean convertHashTagDomain(final HashTag hashTag) {
        final HashTagBean unitHashTag = new HashTagBean();
        unitHashTag.setHashTagName(hashTag.getHashTag());
        unitHashTag.setId(hashTag.getHashTagId());
        unitHashTag.setHits(hashTag.getHits());
        // TODO: ENCUESTAME-191
        // int x = (10 + (int)(Math.random() * ((40) - 5) + 10)); //TEMP.
        if (hashTag.getSize() != null) {
            unitHashTag.setSize(hashTag.getSize().intValue());
        }
        return unitHashTag;
    }
View Full Code Here

TOP

Related Classes of org.encuestame.utils.web.HashTagBean

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.