@Override public boolean equals(Object obj) { if (!(obj instanceof UpdateRequest)) { return false; } UpdateRequest req = (UpdateRequest) obj; return tags.equals(req.getTags()) && metrics.equals(req.getMetrics()); }
List<Dimension> createDimensions(TagList tags) { List<Dimension> dimensionList = new ArrayList<Dimension>(tags.size()); for (Tag tag : tags) { dimensionList.add(new Dimension().withName(tag.getKey()).withValue(tag.getValue())); } return dimensionList; }