match method

bool match(
  1. Descriptor descriptor
)

Partially matches this descriptor to another descriptor. Fields that contain '*' or null are excluded from the match.

  • descriptor the descriptor to match this one against. Returns true if descriptors match and false otherwise

See exactMatch

Implementation

bool match(Descriptor descriptor) {
  return _matchField(_group, descriptor.getGroup()) &&
      _matchField(_type, descriptor.getType()) &&
      _matchField(_kind, descriptor.getKind()) &&
      _matchField(_name, descriptor.getName()) &&
      _matchField(_version, descriptor.getVersion());
}