eTextReader
Class User.HighlighterEntry<K,V>

java.lang.Object
  extended by eTextReader.User.HighlighterEntry<K,V>
Type Parameters:
K - the key class
V - the value class
All Implemented Interfaces:
java.util.Map.Entry<K,V>
Enclosing class:
User

 class User.HighlighterEntry<K,V>
extends java.lang.Object
implements java.util.Map.Entry<K,V>

Provides a simple implementation of the Map.Entry interface, allowing storage of a key and value pair

Author:
mcfall

Field Summary
private  K key
           
private  V value
           
 
Constructor Summary
protected User.HighlighterEntry(K key, V value)
           
 
Method Summary
 K getKey()
           
 V getValue()
           
 V setValue(V value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map.Entry
equals, hashCode
 

Field Detail

key

private K key

value

private V value
Constructor Detail

User.HighlighterEntry

protected User.HighlighterEntry(K key,
                                V value)
Method Detail

getKey

public K getKey()
Specified by:
getKey in interface java.util.Map.Entry<K,V>

getValue

public V getValue()
Specified by:
getValue in interface java.util.Map.Entry<K,V>

setValue

public V setValue(V value)
Specified by:
setValue in interface java.util.Map.Entry<K,V>