exactMatch method

bool exactMatch(
  1. Descriptor descriptor
)

Matches this descriptor to another descriptor by all fields. No exceptions are made.

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

See match

Implementation

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