Example usage for com.mongodb TagSet TagSet

List of usage examples for com.mongodb TagSet TagSet

Introduction

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

Prototype

public TagSet(final List<Tag> tagList) 

Source Link

Document

A set of tags containing the given list of tags.

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()));
    }// w  w w .ja va  2s.  c  o  m
    return new TagSet(tags);
}