FileDocCategorySizeDatePackage
Pair.javaAPI DocGoogle Facebook API v1.52907Sun Nov 11 14:39:12 GMT 2007com.facebook.api

Pair

public class Pair extends Object implements IPair
Simple data structure for grouping two values together. Required by some API calls.
param
first element in the pair.
param
second element in the pair.

Fields Summary
public N
first
The first element in the pair.
public V
second
The second element in the pair.
Constructors Summary
public Pair(N name, V value)
Constructor.

param
name the first value in the pair.
param
value the second value in the pair.

      this.first = name;
      this.second = value;
    
Methods Summary
public NgetFirst()

return
the first object in the pair

        return first;
    
public VgetSecond()

return
the second object in the pair

        return second;
    
public voidsetFirst(N first)
Set the first element in the pair

param
first the object to set

        this.first = first;
    
public voidsetSecond(V second)
Set the second element in the pair

param
second the object to set

        this.second = second;