com.darwinsys.util
Class IdMapEntry
java.lang.Object
com.darwinsys.util.IdMapEntry
public class IdMapEntry
- extends java.lang.Object
An IdMapEntry is one int-String pair, for example, an "id" or primary key
in a database and a name or description of the item in the named row.
IdMapEntry objects are immutable.
Rather like a java.util.Map.Entry but without needing to convert.
- Version:
- $Id: IdMapEntry.java,v 1.7 2006/06/28 02:25:50 ian Exp $
Constructor Summary |
IdMapEntry(int i,
java.lang.String n)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
IdMapEntry
public IdMapEntry(int i,
java.lang.String n)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
getKey
public int getKey()
getValue
public java.lang.String getValue()
Copyright © 1996-2004 Ian F. Darwin. See license.html for usage license.