List of usage examples for com.mongodb TagSet TagSet
public TagSet(final List<Tag> tagList)
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())); }// w w w .ja va 2s. c o m return new TagSet(tags); }