J2ME-recordstore
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!
精彩评论