DixShtix

com.dixshtix.midi
Class ReverseLookup

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--com.dixshtix.midi.ReverseLookup
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class ReverseLookup
extends java.util.Hashtable

Utility Class to reverse-lookup strings into ints.

Version:
0.1
Author:
Richard C. Penner II
See Also:
Serialized Form

Inner classes inherited from class java.util.Map
java.util.Map.Entry
 
Fields inherited from class java.util.Hashtable
count, emptyEnumerator, emptyIterator, ENTRIES, entrySet, KEYS, keySet, loadFactor, modCount, serialVersionUID, table, threshold, values, VALUES
 
Constructor Summary
ReverseLookup(java.lang.String[] array)
          Creator of a hash table that "inverts" an array of Strings.
 
Method Summary
 int lookup(java.lang.String name)
          Given string, returns original array index.
 
Methods inherited from class java.util.Hashtable
, clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, getEnumeration, getIterator, hashCode, isEmpty, keys, keySet, put, putAll, readObject, rehash, remove, size, toString, values, writeObject
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

ReverseLookup

public ReverseLookup(java.lang.String[] array)
Creator of a hash table that "inverts" an array of Strings.
Method Detail

lookup

public int lookup(java.lang.String name)
Given string, returns original array index.

DixShtix