@Override public IGroup getGroupWithAttribute(final String attributeName, final String value) { List<IGroup> groups = getGroupList(); IAttribute attr; for (IGroup group : groups) { attr = group.getAttribute(attributeName); if (attr.getStringValue().equals(value)) { return group; } } return null; }
@Override public IGroup getGroupWithAttribute(String attributeName, String value) { if (name != null) { for (IGroup group : groupList) { IAttribute attribute = group.getAttribute(name); if (attribute != null) { if (StringUtils.isSameString(value, attribute.getStringValue())) { return group; } } } } return null; }