Package net.fp.rp.search.back.struct

Examples of net.fp.rp.search.back.struct.CategoryStruct


        String uniqueName;

        int count = 0;

        for (int i = 0; i < categoryList.size(); i++) {
            CategoryStruct category = (CategoryStruct) categoryList.get(i);

            if (category.getName().startsWith(name)) {
                count++;
            }
        }

        if (count != 0) {
            uniqueName = defaultCategName + count;
        } else {
            uniqueName = name;
        }

        //add to the list
        categoryList.add(new CategoryStruct(uniqueName, location));

        return uniqueName;
    }
View Full Code Here


        String uniqueName;

        int count = 0;

        for (int i = 0; i < categoryList.size(); i++) {
            CategoryStruct category = (CategoryStruct) categoryList.get(i);

            if (category.getName().startsWith(name)) {
                count++;
            }
        }

        if (count != 0) {
            uniqueName = defaultCategName + count;
        } else {
            uniqueName = name;
        }

        //add to the list
        categoryList.add(new CategoryStruct(uniqueName, location));

        return uniqueName;
    }
View Full Code Here

TOP

Related Classes of net.fp.rp.search.back.struct.CategoryStruct

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.