@Test public void testBrooklinMetricInfo() { testBrooklinMetricInfoHelper(BrooklinMeterInfo::new, BrooklinMeterInfo::new); testBrooklinMetricInfoHelper(BrooklinCounterInfo::new, BrooklinCounterInfo::new); testBrooklinMetricInfoHelper(BrooklinGaugeInfo::new, BrooklinGaugeInfo::new); testBrooklinMetricInfoHelper(BrooklinHistogramInfo::new, BrooklinHistogramInfo::new); }
protected BrooklinMetricInfo(String nameOrRegex, Optional<List<String>> attributes) { Validate.notNull(nameOrRegex, "Metric name/regex must be non-null"); Validate.notNull(attributes, "attributes must be non-null"); _nameOrRegex = nameOrRegex; _attributes = attributes; _hashCode = Objects.hash(_nameOrRegex, _attributes.map(HashSet::new).orElse(null)); }
BrooklinMetricInfo { protected BrooklinMetricInfo(String nameOrRegex, Optional<List<String>> attributes) { Validate.notNull(nameOrRegex, "Metric name/regex must be non-null"); Validate.notNull(attributes, "attributes must be non-null"); _nameOrRegex = nameOrRegex; _attributes = attributes; _hashCode = Objects.hash(_nameOrRegex, _attributes.map(HashSet::new).orElse(null)); } }
BrooklinMetricInfo { protected BrooklinMetricInfo(String nameOrRegex, Optional<List<String>> attributes) { Validate.notNull(nameOrRegex, "Metric name/regex must be non-null"); Validate.notNull(attributes, "attributes must be non-null"); _nameOrRegex = nameOrRegex; _attributes = attributes; _hashCode = Objects.hash(_nameOrRegex, _attributes.map(HashSet::new).orElse(null)); } protected  BrooklinMetricInfo(String nameOrRegex, Optional<List<String>> attributes); }
BrooklinMetricInfo { protected BrooklinMetricInfo(String nameOrRegex, Optional<List<String>> attributes) { Validate.notNull(nameOrRegex, "Metric name/regex must be non-null"); Validate.notNull(attributes, "attributes must be non-null"); _nameOrRegex = nameOrRegex; _attributes = attributes; _hashCode = Objects.hash(_nameOrRegex, _attributes.map(HashSet::new).orElse(null)); } protected  BrooklinMetricInfo(String nameOrRegex, Optional<List<String>> attributes); Optional<List<String>> getAttributes(); String getNameOrRegex(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
BrooklinMetricInfo { protected BrooklinMetricInfo(String nameOrRegex, Optional<List<String>> attributes) { Validate.notNull(nameOrRegex, "Metric name/regex must be non-null"); Validate.notNull(attributes, "attributes must be non-null"); _nameOrRegex = nameOrRegex; _attributes = attributes; _hashCode = Objects.hash(_nameOrRegex, _attributes.map(HashSet::new).orElse(null)); } protected  BrooklinMetricInfo(String nameOrRegex, Optional<List<String>> attributes); Optional<List<String>> getAttributes(); String getNameOrRegex(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }