/** * Matches any entries in the map containing wildcards */ @SuppressWarnings({ "rawtypes", "unchecked" }) public void appendMatchingWildcards(Set answer, String[] paths, int idx) { if (idx - 1 > pathLength) { return; } DestinationNode wildCardNode = getChild(ANY_CHILD); if (wildCardNode != null) { wildCardNode.appendMatchingValues(answer, paths, idx + 1); } wildCardNode = getChild(ANY_DESCENDENT); if (wildCardNode != null) { // for a wildcard Node match, add all values of the descendant node answer.addAll(wildCardNode.getValues()); // and all descendants for paths like ">.>" answer.addAll(wildCardNode.getDesendentValues()); } }
/** * Matches any entries in the map containing wildcards */ public void appendMatchingWildcards(Set answer, String[] paths, int idx) { if (idx - 1 > pathLength) { return; } DestinationMapNode wildCardNode = getChild(ANY_CHILD); if (wildCardNode != null) { wildCardNode.appendMatchingValues(answer, paths, idx + 1); } wildCardNode = getChild(ANY_DESCENDENT); if (wildCardNode != null) { answer.addAll(wildCardNode.getDesendentValues()); } }
/** * Matches any entries in the map containing wildcards */ @SuppressWarnings({ "rawtypes", "unchecked" }) public void appendMatchingWildcards(Set answer, String[] paths, int idx) { if (idx - 1 > pathLength) { return; } DestinationNode wildCardNode = getChild(ANY_CHILD); if (wildCardNode != null) { wildCardNode.appendMatchingValues(answer, paths, idx + 1); } wildCardNode = getChild(ANY_DESCENDENT); if (wildCardNode != null) { // for a wildcard Node match, add all values of the descendant node answer.addAll(wildCardNode.getValues()); // and all descendants for paths like ">.>" answer.addAll(wildCardNode.getDesendentValues()); } }
/** * Matches any entries in the map containing wildcards */ @SuppressWarnings({ "rawtypes", "unchecked" }) public void appendMatchingWildcards(Set answer, String[] paths, int idx) { if (idx - 1 > pathLength) { return; } DestinationNode wildCardNode = getChild(ANY_CHILD); if (wildCardNode != null) { wildCardNode.appendMatchingValues(answer, paths, idx + 1); } wildCardNode = getChild(ANY_DESCENDENT); if (wildCardNode != null) { // for a wildcard Node match, add all values of the descendant node answer.addAll(wildCardNode.getValues()); // and all descendants for paths like ">.>" answer.addAll(wildCardNode.getDesendentValues()); } }
/** * Matches any entries in the map containing wildcards */ @SuppressWarnings({ "rawtypes", "unchecked" }) public void appendMatchingWildcards(Set answer, String[] paths, int idx) { if (idx - 1 > pathLength) { return; } DestinationNode wildCardNode = getChild(ANY_CHILD); if (wildCardNode != null) { wildCardNode.appendMatchingValues(answer, paths, idx + 1); } wildCardNode = getChild(ANY_DESCENDENT); if (wildCardNode != null) { // for a wildcard Node match, add all values of the descendant node answer.addAll(wildCardNode.getValues()); // and all descendants for paths like ">.>" answer.addAll(wildCardNode.getDesendentValues()); } }