Example usage for com.google.common.base Pair Pair

List of usage examples for com.google.common.base Pair Pair

Introduction

In this page you can find the example usage for com.google.common.base Pair Pair.

Prototype

public Pair(A first, B second) 

Source Link

Document

Cumbersome way to create a new pair (see #of .

Usage

From source file:com.mongodb.flume.MongoDBSink.java

/**
 * Special function used by Flume's SourceFactory to pull this class in and use it as a plugin Sink
 *///from w  w  w  .ja  v  a  2s  .  c  om
public static List<Pair<String, SinkBuilder>> getSinkBuilders() {
    List<Pair<String, SinkBuilder>> builders = new ArrayList<Pair<String, SinkBuilder>>();
    builders.add(new Pair<String, SinkBuilder>("mongoDBSink", builder()));
    return builders;
}