/** * Construct from the prototype specification. */ public TagFilterPattern(PrototypeMeasurementFilterSpecification.TagFilterSpecification spec) { if (spec == null) return; String keySpec = spec.getKey(); String valueSpec = spec.getValue(); if (keySpec != null && !keySpec.isEmpty() && !keySpec.equals(".*")) { key = Pattern.compile(keySpec); } if (valueSpec != null && !valueSpec.isEmpty() && !valueSpec.equals(".*")) { value = Pattern.compile(valueSpec); } }
/** * Construct from the prototype specification. */ public TagFilterPattern(PrototypeMeasurementFilterSpecification.TagFilterSpecification spec) { if (spec == null) return; String keySpec = spec.getKey(); String valueSpec = spec.getValue(); if (keySpec != null && !keySpec.isEmpty() && !keySpec.equals(".*")) { key = Pattern.compile(keySpec); } if (valueSpec != null && !valueSpec.isEmpty() && !valueSpec.equals(".*")) { value = Pattern.compile(valueSpec); } }