Search technique using for J2ME Enumeration

Posted on 2006-04-26
Last Modified: 2012-05-05
Whats the best search technique to use to loop through an Enumeration instance which contains 100 or so Contact objects from the JSR-75 PIM API.

References to URLs are useful. Thanks!
Question by:meinnit
    LVL 13

    Accepted Solution

    With only 100 Contacts, I'd just loop the enumeration and compare the relevant search terms against the various parts of the Contact.
    LVL 6

    Assisted Solution

    If you are doing multiple searches, read the enumeration into an array, sort it, and use a binary search algorithm.  It's much faster than repeatedly looping through the content.

    If you are only doing one search, then don't bother.  Just loop through sequentially.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    DECT technology has become a popular standard for wireless voice communication. DECT devices are not likely to be affected by other electronic devices and signals because they operate in a separate frequency-band.
    This paper addresses the security of Sennheiser DECT Contact Center and Office (CC&O) headsets. It describes the DECT security chain comprised of “Pairing”, “Per Call Authentication” and “Encryption”, which are all part of the standard DECT protocol.
    This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
    Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now