au.id.pbw.hyfo.hyph
Class HyphenDataCache

java.lang.Object
  extended by au.id.pbw.hyfo.hyph.HyphenDataCache
All Implemented Interfaces:
TernaryTreeDataStore, Serializable

public class HyphenDataCache
extends Object
implements TernaryTreeDataStore, Serializable

The class caches the data for an associated HyphenationTree. The tree accesses the data through the methods of TernaryTreeDataStore.

Author:
pbw
See Also:
Serialized Form

Constructor Summary
HyphenDataCache()
          Creates a new instance of HyphenDataCache
 
Method Summary
 String format_data(int data)
          Returns the data value as a string.
 String format_key(int[] key)
          Returns the key value as a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HyphenDataCache

public HyphenDataCache()
Creates a new instance of HyphenDataCache

Method Detail

format_data

public String format_data(int data)
Returns the data value as a string.

Specified by:
format_data in interface TernaryTreeDataStore
Parameters:
data - the index of the data to be formatted.
Returns:
the formatted data.

format_key

public String format_key(int[] key)
Returns the key value as a string.

Specified by:
format_key in interface TernaryTreeDataStore
Parameters:
key - the int[] key to format.
Returns:
the key formatted as a string.


Copyright © 2005-2006 Peter B. West.