FileDocCategorySizeDatePackage
IdMapEntry.javaAPI DocExample617Mon May 31 22:51:38 BST 2004com.darwinsys.util

IdMapEntry

public class IdMapEntry extends 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.6 2004/06/01 02:51:38 ian Exp $

Fields Summary
private final int
id
private final String
name
Constructors Summary
public IdMapEntry(int i, String n)

		this.id = i;
		this.name = n;
	
Methods Summary
public intgetKey()

		return id;
	
public java.lang.StringgetValue()

		return name;