Re: Bug in Vector.contains() (Was: 'cd' command with filesy stem)

Shawn Silverman <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
Umm.. It appears that I was using contains() instead of containsKey().  
Oops.  My apologies to the list. :)

	-Shawn

On 16-Feb-04, at 4:48 PM, Lorne Smith wrote:

> The Vector class does not have a "get" method.  Are you using a 
> Hashtable
> perhaps?  If you are, keep in mind that "get" operates on a key and
> "contains" operates on a value.  These are usually two different 
> objects so
> the functions should behave differently.
>
> --Lorne
>
>> -----Original Message-----
>> From: Shawn Silverman [mailto:[email protected]]
>> Sent: Monday, February 16, 2004 3:34 PM
>> To: Lorne Smith
>> Cc: tini-6tN4nzCoH/[email protected]
>> Subject: Re: Bug in Vector.contains() (Was: [TINI]'cd' command with
>> filesystem)
>>
>>
>> Hello.  I found the problem.  "Vector.contains(name)" returns 'false'
>> while "myVector.get(name) != null" returns 'true'.  Could
>> this be a bug
>> in Vector.contains()?
>>
>> Thanks,
>> 	-Shawn

_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.