List of usage examples for com.mongodb Tag Tag
public Tag(final String name, final String value)
From source file:com.redhat.lightblue.mongo.config.MongoReadPreference.java
License:Open Source License
private static TagSet parseArg(ObjectNode arg) { List<Tag> tags = new ArrayList<>(); for (Iterator<Map.Entry<String, JsonNode>> itr = arg.fields(); itr.hasNext();) { Map.Entry<String, JsonNode> entry = itr.next(); tags.add(new Tag(entry.getKey(), entry.getValue().asText())); }/*from w ww . ja v a2 s .co m*/ return new TagSet(tags); }