Question about modify an object belongs to a HashTable.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   George_Simple
Posted On:   Sunday, March 2, 2003 02:39 AM

Hi, everyone! I think when modifing an object belongs to a HashTable, and later when retrieve the same object from the same HashTable, the value of the object is updated automatically. For example, -------- //get an object from a HashTable ObjectType ob1 = (ObjectType)someHashTable.get(keyValue); //update the value of ob1 ... //Then get the same object from someHashTable ObjectType ob2 = (ObjectType)someHashTable.get(keyValue); //at here, the value of ob2 has been updated. -------- Thanks in advance, George    More>>
			
Hi, everyone!

I think when modifing an object belongs to a HashTable, and
later when retrieve the same object from the same HashTable,
the value of the object is updated automatically. For example,

--------
//get an object from a HashTable

ObjectType ob1 = (ObjectType)someHashTable.get(keyValue);

//update the value of ob1

...

//Then get the same object from someHashTable

ObjectType ob2 = (ObjectType)someHashTable.get(keyValue);

//at here, the value of ob2 has been updated.
--------


Thanks in advance,
George
   <<Less

Re: Question about modify an object belongs to a HashTable.

Posted By:   Bryan_Dollery  
Posted On:   Sunday, March 2, 2003 03:12 PM

What's the question?
About | Sitemap | Contact