Пример #1
0
 @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());
 }
Пример #2
0
  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;
  }