V
Venkat
Hi,
I would like to have a multiple key dictionary to find a value
based on the given key.
Here is the example to demonstrate what I mean.
I have an Employee class
Public class Employee
{
Int m_EmpId;
String m_EmpName;
Float m_Salary;
String m_Department;
}
Like this I have a collection of objects and I need to retrieve a record
based on the passed Employee id or employee name. Looping through an
arraylist is too slow. And there is no dictionary available to combine both
keys. So I need to maintain two dictionary classes if I want it faster.
Is there any better way to find the record faster?
Thanks in advance.
Cheers,
Venkat
I would like to have a multiple key dictionary to find a value
based on the given key.
Here is the example to demonstrate what I mean.
I have an Employee class
Public class Employee
{
Int m_EmpId;
String m_EmpName;
Float m_Salary;
String m_Department;
}
Like this I have a collection of objects and I need to retrieve a record
based on the passed Employee id or employee name. Looping through an
arraylist is too slow. And there is no dictionary available to combine both
keys. So I need to maintain two dictionary classes if I want it faster.
Is there any better way to find the record faster?
Thanks in advance.
Cheers,
Venkat