net.neoremind.dynamicproxy.util
类 KeyAndValue<K,V>

java.lang.Object
  继承者 net.neoremind.dynamicproxy.util.Entity<KeyAndValue<K,V>>
      继承者 net.neoremind.dynamicproxy.util.KeyAndValue<K,V>
所有已实现的接口:
Serializable, Entryable<K,V>

public class KeyAndValue<K,V>
extends Entity<KeyAndValue<K,V>>
implements Entryable<K,V>

作者:
zhangxu
另请参见:
序列化表格

字段摘要
protected  K key
           
protected  V value
           
 
构造方法摘要
KeyAndValue()
           
KeyAndValue(K key, V value)
           
 
方法摘要
 K getKey()
          return the key of entry
 V getValue()
          return the value of entry
protected  Object hashKey()
           
protected  boolean isEquals(KeyAndValue<K,V> obj)
           
 void setKey(K key)
           
 void setValue(V value)
           
 
从类 net.neoremind.dynamicproxy.util.Entity 继承的方法
equals, hashCode
 
从类 java.lang.Object 继承的方法
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

key

protected K key

value

protected V value
构造方法详细信息

KeyAndValue

public KeyAndValue()

KeyAndValue

public KeyAndValue(K key,
                   V value)
方法详细信息

getKey

public K getKey()
从接口 Entryable 复制的描述
return the key of entry

指定者:
接口 Entryable<K,V> 中的 getKey
返回:
key

setKey

public void setKey(K key)

getValue

public V getValue()
从接口 Entryable 复制的描述
return the value of entry

指定者:
接口 Entryable<K,V> 中的 getValue
返回:
value

setValue

public void setValue(V value)

hashKey

protected Object hashKey()
指定者:
Entity<KeyAndValue<K,V>> 中的 hashKey

isEquals

protected boolean isEquals(KeyAndValue<K,V> obj)
指定者:
Entity<KeyAndValue<K,V>> 中的 isEquals


Copyright © 2016 neoremind. All rights reserved.