Example usage for com.mongodb Tag Tag

List of usage examples for com.mongodb Tag Tag

Introduction

In this page you can find the example usage for com.mongodb Tag Tag.

Prototype

public Tag(final String name, final String value) 

Source Link

Document

Construct a new instance.

Usage

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);
}