开发者

J2ME-recordstore

开发者 https://www.devze.com 2022-12-09 14:06 出处:网络
Can someone please tell me what d开发者_开发技巧oes recordenumertaion return when word being searched is not present in recordstore?I assume that if there are no records to return, the method enumerat

Can someone please tell me what d开发者_开发技巧oes recordenumertaion return when word being searched is not present in recordstore?


I assume that if there are no records to return, the method enumerateRecords returns an empty RecordEnumeration. That is, hasNextElement will return false the first time you call it. I guess it could return null, or throw an exception, but the documentation doesn't mention those, so empty enumeration it seems to be.

Don't be afraid to read the docs!

0

精彩评论

暂无评论...
验证码 换一张
取 消