/** Parses an attribute value from a list of rules, returning null if there is no match for the given key. */ private static @Nullable String findAttributeInRules(String subpath, boolean isFolder, String key, List<AttributesRule> rules) { String value = null; // later rules override earlier ones for (AttributesRule rule : rules) { if (rule.isMatch(subpath, isFolder)) { for (Attribute attribute : rule.getAttributes()) { if (attribute.getKey().equals(key)) { value = attribute.getValue(); } } } } return value; } }
while (ruleIterator.hasPrevious()) { AttributesRule rule = ruleIterator.previous(); if (rule.isMatch(entryPath, isDirectory)) { ListIterator<Attribute> attributeIte = rule.getAttributes() .listIterator(rule.getAttributes().size());
/** Parses an attribute value from a list of rules, returning null if there is no match for the given key. */ private static @Nullable String findAttributeInRules(String subpath, boolean isFolder, String key, List<AttributesRule> rules) { String value = null; // later rules override earlier ones for (AttributesRule rule : rules) { if (rule.isMatch(subpath, isFolder)) { for (Attribute attribute : rule.getAttributes()) { if (attribute.getKey().equals(key)) { value = attribute.getValue(); } } } } return value; } }
while (ruleIterator.hasPrevious()) { AttributesRule rule = ruleIterator.previous(); if (rule.isMatch(entryPath, isDirectory)) { ListIterator<Attribute> attributeIte = rule.getAttributes() .listIterator(rule.getAttributes().size());
while (ruleIterator.hasPrevious()) { AttributesRule rule = ruleIterator.previous(); if (rule.isMatch(entryPath, isDirectory)) { ListIterator<Attribute> attributeIte = rule.getAttributes() .listIterator(rule.getAttributes().size());