Skip to content

Commit

Permalink
Merge pull request #4 from vostok/read_doubles_from_specific_annotations
Browse files Browse the repository at this point in the history
Read doubles for specific annotations
  • Loading branch information
dafanaseva authored Jul 25, 2023
2 parents 3f94277 + 5eafac7 commit 5399c70
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,25 @@ public HerculesSpecificAnnotationsReader(Dictionary<string, object> annotations)
annotations[key] = value;
return this;
}

public new IHerculesTagsBuilder AddValue(string key, string value)
{
if (annotations.ContainsKey(key))
annotations[key] = value;
return this;
}

public new IHerculesTagsBuilder AddValue(string key, long value)
{
if (annotations.ContainsKey(key))
annotations[key] = value;
return this;
}

public new IHerculesTagsBuilder AddValue(string key, double value)
{
if (annotations.ContainsKey(key))
annotations[key] = value;
return this;
}
}

0 comments on commit 5399c70

Please sign in to comment.