net.sf.eos.trie
Class TrieSource.TrieEntry

java.lang.Object
  extended by net.sf.eos.trie.TrieSource.TrieEntry
All Implemented Interfaces:
Map.Entry<String,String>
Enclosing interface:
TrieSource

public static class TrieSource.TrieEntry
extends Object
implements Map.Entry<String,String>

Represents an entry in the Trie.

Author:
Sascha Kohlmann

Constructor Summary
TrieSource.TrieEntry(String key)
          Creates a new instance for the given key.
TrieSource.TrieEntry(String key, String value)
          Creates a new instance for the given key.
 
Method Summary
 String getKey()
           
 String getValue()
           
 String setValue(String 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
 

Constructor Detail

TrieSource.TrieEntry

public TrieSource.TrieEntry(String key)
Creates a new instance for the given key.

Parameters:
key - the key of the entry

TrieSource.TrieEntry

public TrieSource.TrieEntry(String key,
                            String value)
Creates a new instance for the given key.

Parameters:
key - the key of the entry
value - the value of the entry
Method Detail

getKey

public String getKey()
Specified by:
getKey in interface Map.Entry<String,String>
See Also:
Map.Entry.getKey()

getValue

public String getValue()
Specified by:
getValue in interface Map.Entry<String,String>
See Also:
Map.Entry.getValue()

setValue

public String setValue(String value)
Specified by:
setValue in interface Map.Entry<String,String>
See Also:
Map.Entry.setValue(Object)


Copyright © 2008. All Rights Reserved.