Pair<L,R> クラス
- java.lang.Object
- com.microsoft.bot.schema.Pair<L,R>
型パラメーター
- L
左側のタプル値の型。
- R
適切なタプル値の型。
public class Pair<L,R>
Java ではネイティブにサポートされていないため、単純な 2 タプルのようなクラス。 これは変更できないオブジェクトです。
コンストラクターの概要
コンストラクター | 説明 |
---|---|
Pair(L withLeft, R withRight) |
新しいペアを作成します。 |
メソッドの概要
修飾子と型 | メソッドと説明 |
---|---|
L |
getLeft()
左の値を取得します。 |
R |
getRight()
適切な値を取得します。 |
メソッドの継承元: java.lang.Object
java.lang.Object.clone
java.lang.Object.equals
java.lang.Object.finalize
java.lang.Object.getClass
java.lang.Object.hashCode
java.lang.Object.notify
java.lang.Object.notifyAll
java.lang.Object.toString
java.lang.Object.wait
java.lang.Object.wait
java.lang.Object.wait
コンストラクターの詳細
Pair
public Pair(L withLeft, R withRight)
新しいペアを作成します。
Parameters:
withLeft
- 左の値。
withRight
- 右の値。
メソッドの詳細
getLeft
public L getLeft()
左の値を取得します。
Returns:
L 型の左の値。
getRight
public R getRight()
適切な値を取得します。
Returns:
R 型の適切な値。