public boolean matches(Hop hop) {
        if (hop == null || hop.getNumDirectives() != selector.size()) {
            return false;
        }
        for (int i = 0; i < hop.getNumDirectives(); ++i) {
            if (!selector.get(i).matches(hop.getDirective(i))) {
                return false;
            }
        }
        return true;
    }
<p>Returns true whether this hop matches another. This respects policy
directives matching any other.</p>

@param hop The hop to compare to.
@return True if this matches the argument, false otherwise.
messagebus/src/main/java/com/yahoo/messagebus/routing/Hop.java