javax.lang
クラス Pair

java.lang.Object
  拡張javax.lang.Pair
すべての実装インタフェース:
java.lang.Cloneable

public class Pair
extends java.lang.Object
implements java.lang.Cloneable

An object representing tuples.

作成者:
Toshihiro YOSHINO

コンストラクタの概要
Pair(java.lang.Object first, java.lang.Object second)
          Constructs a tuple.
 
メソッドの概要
 java.lang.Object getFirst()
          Obtain the first element.
 java.lang.Object getSecond()
          Obtain the second element.
 void setFirst(java.lang.Object first)
          Set the first element.
 void setSecond(java.lang.Object second)
          Set the second element.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

Pair

public Pair(java.lang.Object first,
            java.lang.Object second)
Constructs a tuple.

パラメータ:
first - First element
second - Second element
メソッドの詳細

getFirst

public java.lang.Object getFirst()
Obtain the first element.

戻り値:
First element

setFirst

public void setFirst(java.lang.Object first)
Set the first element.

パラメータ:
first - Value to set

getSecond

public java.lang.Object getSecond()
Obtain the second element.

戻り値:
Second element

setSecond

public void setSecond(java.lang.Object second)
Set the second element.

パラメータ:
second - Value to set