Package com.redhat.ecs.commonstructures

Examples of com.redhat.ecs.commonstructures.NameIDSortMap


        {
          final List<CategoryV1> categories = tag.getCategories().getItems();

          if (categories.size() == 0)
          {
            final NameIDSortMap categoryDetails = new NameIDSortMap("Uncatagorised", -1, 0);

            if (!tags.containsKey(categoryDetails))
              tags.put(categoryDetails, new ArrayList<TagV1>());

            tags.get(categoryDetails).add(tag);
          }
          else
          {
            for (final CategoryV1 category : categories)
            {
              final NameIDSortMap categoryDetails = new NameIDSortMap(category.getName(), category.getId(), category.getSort() == null ? 0 : category.getSort());

              if (!tags.containsKey(categoryDetails))
                tags.put(categoryDetails, new ArrayList<TagV1>());

              tags.get(categoryDetails).add(tag);
View Full Code Here

TOP

Related Classes of com.redhat.ecs.commonstructures.NameIDSortMap

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.