get the mutimap sort key

Hi all

I am compiling my project with compiler 1.4 and unfortunately I can't change his version sources cause are adjusted to this version. However I use Multimap in my code:

_contacts = new MultiMap();

..

Keys enumeration = _contacts.keys ();
While (keys.hasMoreElements ()) {}
String nextKey = (String) keys.nextElement ();
Enumeration values = _contacts.elements (nextKey);

Keys enumeration = _contacts.keys ();
While (keys.hasMoreElements ()) {}
String nextKey = (String) keys.nextElement ();
FK ExtLabelField = new ExtLabelField (nextKey);
fK.setFont (AppSettings.getDefaultFontFamily)
.getFont (Font.BOLD, 18));
fK.setColor (AppSettings.whiteColor);
fK.setMargin (3, 0, 3, 13);
VFM. Add (FK);
Enumeration values = _contacts.elements (nextKey);

While (values.hasMoreElements ()) {}
ContactField field = values.nextElement () (ContactField);
VFM. Add ((ContactField) values.nextElement ());
}
}

unfortunatell card return keys unsorted.

Any ideas?

OK, I got it:

_Keys SimpleSortingVector = new SimpleSortingVector();
_keys.setSortComparator (new Comparator() {}
public int compare (Object o1, Object o2) {}
Return (((String) o1) .compareTo ((String) o2))) End Function
}
});
       
Keys enumeration = _contacts.keys ();
While (keys.hasMoreElements ()) {}
_keys. AddElement ((String) Keys.NextElement ());
}

_keys.reSort ();

for (int i = 0; i)< _keys.size();i++)="">
String nextKey = (String) _keys.elementAt(i);//(String) keys.nextElement ();
}

Tags: BlackBerry Developers

Similar Questions

  • What is the unique sort key in vbscript?

    What is the unique sort key in vbscript?

    RRR OK. Imagine that you have a list of people which contains the full name and address of each person, amongst others, and that you want to search for a certain person.

    Now, if you are only looking for the name, something like. Now you use a multi key to get the right person consisting of 2 fields name & address.

    It's the same thing with sorting it will begins the list of all the names people AND say something like:

    L1 A1

    N1 A2

    N2 A1

    N3 A1

    N3 A2

    and so on, where N = the name and address =.

    Hope this helps but if not related to Windows XP.

    There are a few good dev forums out there for that.

  • How can I get the correct product key for my sleekbook want PC4

    How can I get the correct product key for my sleekbook desire 4 PC

    Hello

    As mentioned in your other post you can get it from Microsoft with your money:

    http://h30434.www3.HP.com/T5/notebook-operating-systems-e-g-Windows-8-and-software/i-purchase-envy-notebook-PC-4-1100se-how-can-i-get-the/m-p/2853225

    Kind regards.

  • I keep getting the 'Network security Key Mismatch' message when you try to connect using my wireless internet connection. I don't know that I use the password.

    I keep getting the 'Network security Key Mismatch' message when you try to connect using my wireless internet connection.  I don't know that I use the password.

    Hi oms1957

    I recommend you try these methods

    Method 1:

    Reset the wireless network and make sure that you set the level of security to WPA2-Personal, as it is recommended.

    Here are some links that will help you set up the wireless network

    What are the different wireless network security methods?

    Method 2:

    If this does not clear if installed third-party antivirus and then try to connect. If the problem is resolved, you have to uninstall the antivirus and reinstall back or check with the settings.

    Method 3:

    Cycle power to the router and check if this is useful.

    Thank you, and in what concerns:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to get the new activation key when some numbers are taken away and you have received?

    How to get the new activation key when some numbers are taken away and you have received?

    Have a laptop with windows 7 from Dell. Need to re install W7. And I have some numbers are taken as a result of its use.
    How can I get a new code activation or my complete activation code?
    Best regards, W7 user

    How to get the new activation key when some numbers are taken away and you have received?


    Have a laptop with windows 7 from Dell. Need to re install W7. And I have some numbers are taken as a result of its use.
    How can I get a new code activation or my complete activation code?

    Dell provided you with restore/recovery media and/or a way to restore the machine 'default' as a key sequence?  If so - you won't need the number--unless they just sent a DVD of Windows 7 nu - and they are usually not unless you ask.

    They have probably installed using their key, which means that even with a utility like Belarc Advisor or ProduKey - you will not get the product key that matches the one on the sticker.

    Some may have you take several different digital pictures of the sticker from different angles and see if you can decipher the missing characters like that (you'd be surprised to see how that works).

  • Get the new activation key

    I bought a copy of windows 7 ultimate Windows.com/genuine after having received a notice that my copy of windows was not authentic. I bought the new activation key for almost $300 and they also sent me an installation CD where I never had to perform a reinstallation. Well my hard drive crashed and I had to purchase and install a new one, which meant the reinstallation of windows. However, I found that in some way I lost my activation code and the cover of the CD that Microsoft sent me contained not one. I called Microsoft support several times to get the reprinted to me activation key. I spent many hours being transferred from one Department to the other until they began to transfer me to the same departments several times. I have my order number, address that was sent to the, date of purchase and all. They can see my order but they can't access information on this topic for a reason, and they issue me a new code. At this point, I'm really upset because I spent a lot of money on this software only to be told that I can't use it. In addition to all this Microsoft has absolutely no way to file a complaint. I am at a loss to know what to do. The only option that Microsoft gives me is to buy a new code, but there is no way I'm paying twice for the same product, I just assumed never to use a Microsoft product to new to be dressed like that. If someone has experienced something similar, I would be grateful for help on how to get this sorted out. Thank you!

    In order to buy key online, you need to create an account.  Others are able to retrieve the key from this account.  Have you tried signing in?

    Always attach your product keys as you would any money because that's what you lose.

    Have you confirmed that the hard drive is dead by starting HD diagnostic CD indicated on the?  If your manufacturer is not listed, then use Seatools CD.

    If the hard drive still has life so here How to recover Windows 7 8 disc product key from unbootable

    How to find your lost Windows or Office product keys

    Retrieves the product key lost (CD - Key) of Windows/MS-Office/SQL Server

  • Satellite L500/01F and Win7 - can't get the working FN keys

    I have a Satellite L500/01F and performed a clean installation of windows 7.
    All right, except that I can't get the FN keys work.

    Is there a certain driver I can download for this problem? Thank you

    Have you installed package of added value for Win7 offered for your laptop model?

  • How to get the old product key?

    Original title: product number

    The Microsoft sticker rubbed on the bottom of my computer.  Is it possible to get the numbers out of that so I can reload Windows on my computer?

    Hello

    If you bought the computer from the Original Equipment Manufacturer (OEM) you contact you even for the product key.

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How can I get the correct product key for my laptop?

    Hello I bought my Pavillion dv6707 us in TI 2008 has Windows Vista Home 32-bit (OPS).

    I just got a notice saying that my (OPS) are not authentic I have 2 key 1 products in the software 89578-OEM-7332157-00061 the other is on the bottem of my laptop that I can almost distinguish as V6KPX-BFMJF-DM7QP-T3X7B-QCQDD how can I get the right pair?

    Hello

    Those at the bottom of the laptop is for the operating system on your machine.

    Kind regards.

  • Get the invalid product key when you try to activate

    I bought my lap top with pre loaded windows 7. I bought at the same time from the same shop, Curry, a product key. Enabled - saved my windows 7 online. When I try to use the word, I get a message to activate windows by typing the product key code. When I do, and yes I type in there correctly, he said that only the key code is invalid.

    What is wrong on Earth? Please help me because I am lost the will to live.

    If you purchased Office 2010 and get no valid product key error to refer the article mentioned below:

    http://support.Microsoft.com/kb/2002262

  • How to get the lost activation key

    my computer is installed with windows original 8. When I tried to upgrade to windows pro it asks activation key. but I have the original product key, but I lost my activation key. How can I get my activation code.

    Go to the order summary page, you can find your product key:

    https://www.mswos.com/

    If Windows 8 came preininstalled on your computer:

    With Windows 8, Microsoft changed stickers that have the product key that the user must type in during the installation of the operating system of new embedded BIOS product key. The idea is that by eliminating the tile, you eliminate one of the easiest ways for nefarious users get a legitimate product key. The sticker also eliminating product key removes any concern that the vignette could get damaged while at the same time eliminating the long and irritating the process of typing in various letters and numbers in the installation of the operating system.

    If the user has to reinstall the operating system on a computer with Windows 8, the installation process automatically captures key software product of the motherboard BIOS without input from the user. This means that these stickers familiar windows product key will no longer appear on Windows 8 computers.

  • Reset windows 8 and but did not get the correct product key.

    Hi all.

    I bought a used HP Pavilion desktop computer and decided that it would be better to reset factory settings before you start using it. Unfortunately, I made and then found I don't have the product key of Windows 8 for it, and no more than the seller. The reset process is to half-way through, but I'm not sure how to do this when I get to the part where it asks for the key. Nightmare!

    Suggestions would be greatly appreciated.

    See you soon

    Andy

    You should not be asked for a product key because you used the factory reset to reinstall Windows 8.

    1. press the Windows key + X , and then clickrun, and then type: slui.exe 4


    2. then press the ENTER"" key.

    3. Select your "country" in the list.

    4. choose the option "activate phone".

    5. stay on the phone (do not select/press all options) and wait for a person to help you with the activation.

    6. explain your problem clearly to the support person.

  • How do you get the windows product key 8 - I seem to be a short number

    How to get your product key for windows 8, I seem to have a missing digit

    Go to the order summary page, you can find your product key:

    https://www.mswos.com/

    You can download it from there and use your product key to upgrade:

    http://Windows.Microsoft.com/en-GB/Windows-8/upgrade-product-key-only

    If you encounter any quelconque probleme problem with question summary and billing order, please contact a customer support agent to:

    http://support.Microsoft.com/GP/ESD-support-phone-numbers

  • Laptop NB550D - software needed to get the working Fn keys

    What is the name of the Toshiba software that makes really nice and useful menu graphic on the top of the screen, when I press the Fn key?

    Packed in which driver I can find it?
    [Portable NB550D | http://ce.computers.toshiba-europe.com/innovation/download_drivers_bios.jsp?LNG=20&service=CE&selCat & category = 2 selFamily = 387 & selSeries = 242 & selProduct = 633 8 & selShortMod = 2941 & language = 32 & selOS = 29 & selType = al & yearupload = & monthupload = & dayupload = & useDate = null & mode = allMachines & search = & action = search & macId = & country = all & page = 1?]

    Hello

    The software that controls the FN keys is called: Flash Cards Support utility
    In addition, you need to install VAP (value added package) before installing the Flash Cards Support utility.

    By the way; If this software is already installed, you can start it in all programs-> Toshiba-> Flash Cards Support utility

  • Get the "invalid product key" when trying to change my key in Server 2008.

    Change product key

    I downloaded a trial version of the Server 2008 r2 62B. It is installed and works very well. I purchased volume licenses and received the license keys to the FOEN of kms and mak. When I entered the new key (the two mak of anc kms) below change the product key, the system says invalid key, is anyway to change the law without having to reinstall the system please?

    Thank you very much

    Lol Trial Versions must be removed by reformatting the hard drive, then install the version of Volume license using the Volume license installation media.

Maybe you are looking for

  • HP Slate 10 HD 3g and wifi?

    Ordered the hp slate 10 HD with free 3g for 2 years looking for clarification that this tablet also has also built-in wi - fi. Fortunately Fraser

  • MASTERED OPTION IS GRAYED OUT WHEN YOU TRY TO BURN A HOME PC PREM BRAND NEW VIRGIN DVD + R ON VISTA 32-BIT

    Due to virus I had to rebuild PC using the RECOVERY partition on hard drive. All windows updates have been applied to date (August 2011). Before the virus problem (July 2011) WAS able TO SELECT THE "MASTERED" OPTION WHEN YOU are GOING to USE WINDOWS

  • Not able to see the fields within a custom resources optimization

    Hi all I am not able to see the fields within a custom value. Here is my code for the custom resource optimization: public class CustomContentContainer extends VerticalFieldManager{ String content_header; int container_height; int displayWidth = Disp

  • SGfdu04m.dll & SGFu03m.dll

    Hi all I have a client computer. The user did not remember what he was doing until he ceases to pop the window within a few hours. The pop-up windows States the following: Source: C:\Windows\TEMP\sgfdu04m.dll Target: C:\Windows\System32\sgfdu04.dll T

  • BlackBerry smartphones canned SMS Messages?

    My last cell phone (standard), contained a list of canned text messages (include "Where are you?", "will be there in 15 minutes.', 'Need of guidance'. etc.).  I don't see that on the Blackberry.  They fit?  Otherwise, where I create and store my own?