パッケージ org.aiwolf.common.util
クラス Pair<K,V>
- java.lang.Object
-
- org.aiwolf.common.util.Pair<K,V>
-
- 型パラメータ:
K
-キーKeyV
-値Value
- すべての実装されたインタフェース:
java.io.Serializable
public class Pair<K,V> extends java.lang.Object implements java.io.Serializable
二組のデータを組み合わせるクラスPair is two sets of data.- 作成者:
- tori
- 関連項目:
- 直列化された形式
-
-
メソッドの詳細
-
getKey
public K getKey()
キーを返します。Get the key.- 戻り値:
- キーkey
-
setKey
public void setKey(K key)
キーを設定します。Set the key.- パラメータ:
key
-設定するキーKey
-
getValue
public V getValue()
値を返します。Get the value.- 戻り値:
- 値value
-
setValue
public void setValue(V value)
値を設定します。Set the value.- パラメータ:
value
-設定する値Value
-
equals
public boolean equals(java.lang.Object obj)
同一性をチェックします。
キーおよび値の両方の一致性を調べます。Checks the identity.
Examines the consistency both the keys and values.- オーバーライド:
equals
クラス内java.lang.Object
-
hashCode
public int hashCode()
- オーバーライド:
hashCode
クラス内java.lang.Object
-
toString
public java.lang.String toString()
- オーバーライド:
toString
クラス内java.lang.Object
-
-