Vector and Hashmap with the same Content

Hi Folks
I have the following Problem, i want to set the same Content in a Vector as in an existing HashMap (both static!)
These are my trials, both did not work.
1.)
static Hashmap hashMap = new HashMap();
static Vector vector = new Vector(hashMap.values());
2.)
public static Vector getElements()
          HashMap cache = hashMap;
          Collection c = cache.values();
          Set set = cache.keySet();
          Iterator it = set.iterator();
          Vector cache1 = new Vector();
          while(it.hasNext())
               String key = (String)it.next();
               Element element = (Element)cache.get(key);
               Element element2 = new Element();
element2.setAttribut(element.getAttribut())
               cache1.add(element2);
          cache = cache1;
          return cache;
Does someone has advice??
greetings
Thomas

Hi,
why not simply make your method return the local vector (cache1) instead of using additional code ?
By the way: I'm surprised because the method should return a Vector but instead returns a HashMap. Are you sure your code compiles ?
Hope this helped,
Regards.

Similar Messages

  • Ability to process several raw files with the same content but with different exposure into the single picture

    Can you add to the Lightroom an ability to process several raw files with the same content but with different exposure into the single picture?
    Base raw files can be given with exposure bracketing during shooting, for example.
    The goal - to get maximum details in darks and lights (if we use the "ligths recovery" or "fill lights" we lose the quality because raw file just have no all required information).
    The similar (but not the same, only the idea) thing - is High Dynamic Range Photography in Adobe Photoshop
    Thank you

    The plugin LR/Enfuse does this already. And of course Photomatix have a plugin available for Lightroom. This essentially amounts to pixel editing, which is beyond the range of Lightroom's metadata editing.

  • HT4314 I have a iPad and iPhone with the same Apple ID, but on Game Center I have used the same id for both devices and they are two different profiles and I was wondering how to have one of the accounts on both devices.

    I have a iPad and iPhone with the same Apple ID, but on Game Center I have used the same id for both devices and they are two different profiles and I was wondering how to have one of the accounts on both devices.

    Hi Jamesdwills,
    Welcome to the Support Communities!
    If you are using the same Apple ID on both devices, the Game Center profile should be the same.
    Check out this information from the iPad User Guide.  Try signing out of the Game Center on both devices and then sign back in with the correct Apple ID:
    Using Game Center
    http://support.apple.com/kb/ht4314
    Game Center settings - iPad User Guide
    http://help.apple.com/ipad/7/#/iPad9a13d039
    Game Center settings
    Go to Settings > Game Center, where you can:
    Sign out (tap your Apple ID)
    Allow invites
    Let nearby players find you
    Edit your Game Center profile (tap your nickname)
    Get friend recommendations from Contacts or Facebook
    Specify which notifications you want for Game Center. Go to Settings > Notifications > Game Center. If Game Center doesn’t appear, turn on Notifications.
    Change restrictions for Game Center. Go to Settings > General > Restrictions.
    Cheers,
    - Judy

  • I have two iPhones and synchronize with the same macbook. How I do segregate both applications and data?

    I have two iPhones and synchronize with the same macbook.  How do I segregate both applications and all the data?

    Hi Jamesdwills,
    Welcome to the Support Communities!
    If you are using the same Apple ID on both devices, the Game Center profile should be the same.
    Check out this information from the iPad User Guide.  Try signing out of the Game Center on both devices and then sign back in with the correct Apple ID:
    Using Game Center
    http://support.apple.com/kb/ht4314
    Game Center settings - iPad User Guide
    http://help.apple.com/ipad/7/#/iPad9a13d039
    Game Center settings
    Go to Settings > Game Center, where you can:
    Sign out (tap your Apple ID)
    Allow invites
    Let nearby players find you
    Edit your Game Center profile (tap your nickname)
    Get friend recommendations from Contacts or Facebook
    Specify which notifications you want for Game Center. Go to Settings > Notifications > Game Center. If Game Center doesn’t appear, turn on Notifications.
    Change restrictions for Game Center. Go to Settings > General > Restrictions.
    Cheers,
    - Judy

  • HT3204 Having purchased a Bluray of Les Mis with a digital download, I am unable to download the film through iTunes with each time I try it stops at 1.43GBytes.  I have attempted both Win8 PC and iPad with the same result.  Any ideas?

    Having purchased a Bluray of Les Mis with a digital download, I am unable to download the film through iTunes with each time I try it stops at 1.43GBytes.  I have attempted both Win8 PC and iPad with the same result.  Any ideas?

    Hello there, TindyBobbin.
    Just to make sure, here is a Knowledge Base article that reviews the process for downloading a digital copy:
    Transferring or downloading an iTunes Digital Copy
    http://support.apple.com/kb/ht1539
    If all of the steps still do not help with the download, you may want to follow what is mentioned at the bottom of all instructions:
    If you are experiencing issues downloading your iTunes Digital Copy, please contact iTunes Store Support.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • I want to sync my iphone, ipad, and macbook with the same username and password, is this possible

    i want to sync my ipad, iphone, and macbook with the same username and password.  is this possible and if so, how do i do it?

    You mean with the same iCloud account?
    If so, yes this is possible by accessing the iCloud account with the Mail.app on your Mac and with the iPad and iPhone Mail app. This allows for keeping server stored email account mailboxes synced between all three, syncing contacts, calendar events, notes, and Reminders synced between all three, and the same with the iCloud Photo Stream. In addition, you can have music, books, and apps purchased/downloaded from the iTunes store with one device automatically downloaded on the other devices.

  • TS1646 Can I have an ITunes account at more than one store (ie US and UK) with the same Apple ID or do I need a second one? Thanks

    I spend time in both the US and the UK and sometimes not all apps are available in the US store which is my primary account. Can I set up a second account at the UK store with the same Apple ID?

    You'll need to set up a second account with a different Apple ID. You cannot use a single Apple ID in two different iTunes Stores at the same time.
    Regards.

  • How do i open a new duplicate window? Two windows with the same content.

    Hello, I am switching from IE8 to Firefox. We need to be able to open a new window with the same page displayed instead of going to my homepage. In IE it's called "Open A New Duplicate Window". This feature is very important to us using two screens for web development. Thanks

    in the address box, click and drag the address to the plus sign on the new tab above, it will open a duplicate tab

  • Creative Cloud on pc and mac with the same license ?

    Can I install Creative Cloud on 2 computers, one pc and one mac with the same license ?

    Yes, a Creative Cloud subscription can be applied to two machines and they can be mixed platforms as well.

  • HT4818 Can you use both Bootcamp and Parallels with the same Windows 7 installed

    I have Parallels installed with Windows 7.  Can I use both Bootcamp and Parallels on the same machine depending on whether I just want to work in Windows all day (Bootcamp) or alternate during the same session (Parallels)?

    You can, yes. But there is a complication: once you activate windows it will only be activated for one of the two methods you use. So, let's say you install into boot camp and activate windows. You can then install Parallels and it will find your boot camp installation, but when running in Parallels, Windows will report that it is not activated. Or, you can activate it in Parallels and when running in Boot Camp Windows will report that it is not activated. The reason for this is because Windows thinks it is running on different computers depending on how you boot it. This may not be an issue for you if you run Windows a lot one way and just occasionally the other way, so be sure to activate Windows in whichever method you use more often. Hope this helps!

  • 3 genre folders with the same content, also can't play my homemade iMovie

    I downloaded songs from 17 different jazz albums and categorized them under the genre "jazz" in iTunes. However, after importing, my iPod lists 3 different "jazz" folders, one as 17 albums, 47 songs, the second 3 albums 15 songs and the third says 1 album and 1 song - but opening any of these folders reveals all 47 jazz songs! In iTunes, all the songs under "jazz" are written exactly the same, no misspellings, no caps/lower case mixes - I can't figure it out.
    And while I'm here, I also can't find my homemade iMovie which shows up and plays in iTunes but not on the iPod.

    For the first problem, all I can suggest is trying the "The Five Rs" to make sure everything is up-to-date & restored to the Nano with the same genre as in iTunes.
    For the second, have you exported/published the movie to iTunes from within the iMovie application or added it to the iTunes library in some other way? iPods only support a limited subset of MPEG-4 video formats, while iTunes can support any video format that Quicktime does. You don't say which version of iMovie you have but for example, iMovie 8.0 Help: Downloading your movies to your iPod or iPhone explains the steps to publish an iMovie 8 project to iTunes in a format suitable for various devices.
    The iMovie 8.0 Help topic "Customizing your QuickTime export" also has info you may find useful if you want to customize the rendering options beyond the preset ones recommended for use with a particular device. Refer to the Nano's tech specs for the codecs, frame sizes, & frame rates it can support. Choose any options that meet but don't exceed those specs & you should be able to add the movie to your Nano at a variety of sizes, qualities, & frame rates to suit just about any purpose.

  • ACE20 Rserver and VIP with the same IP

    I have an ACE that I'm trying to get configured.  I need a rserver to have the same ip address and a class map vip address.  ex below.
    rserver host RED
      description REDS
      ip address 172.95.94.250
      inservice
    serverfarm host REDS
      transparent
      rserver RED 9000
    lass-map match-all stb-RED
      2 match virtual-address 172.95.94.250 255.255.255.0 any
    Shouldn't the transparent command under serverfarm allow this configuration?  When I issue the class map command I get this error message.
    Error:  Entered VIP address is not the first address in the VIP range
    software version
    Software
      loader:    Version 12.2[121]
      system:    Version A2(3.6a) [build 3.0(0)A2(3.6a)]
      system image file: [LCP] disk0:c6ace-t1k9-mz.A2_3_6a.bin
      installed license: no feature license is installed

    Hi,
    This is correct; you cannot have the VIP and real using the same IP in the config. This will be seen as a Dup IP from the ACE perspective since it owns the VIP IP. How you do this is to configure the server with a unique IP from the subnet configured on the ACE server vlan. This is what you use to define the real in the config. The server IP needs to be L2 adjacent to the ACE for this to work. The transparent keyword tells the ACE to just L2 forward the traffic to the Mac address the real resolves to, but keeps the vip IP as the destination. This is why the server needs to be L2 adjacent to the ACE so that it can see the REALs actual mac address.  Without the transparent keyword we NAT the VIP address to the REAL that gets the connections.
    You will also need to create a loopback IP using the same address as the vip on the server.
    The reason you need to use a loopback IP is so that the server does not arp for this address. You do not want the server to advertise that it owns this address since it is already assigned to the ACE VIP.
    The link below is for IOS server load balancing but the loopback samples are still relevant.
    http://www.cisco.com/c/en/us/support/docs/routers/7200-series-routers/10567-37.html#topic1
    I hope this information is helpful
    Best regards
    Jim

  • Grown InDesign files with the same content from 40 MB to 430 MB

    Hello
    I have a recurring project where always the same pdfs with vector contents are included. The InDesign file had always around 40 MB.
    Since the update to CC the new .indd files suddenly grew to 230 MB, and at the next step to 430 MB.
    I resave the files under a new name, when new corrections come in, so i can go back to the last version and track changes, there are about 120 pages, with about 60 tables and 35 graphics that were opened and colored in CMYK in Illustrator.  From the 40 to the 430 MB nothing has changed on my course of action... How can that be what I can do?
    Thank you!
    Hallo,
    ich habe ein wiederkehrendes Projekt in dem immer die gleichen pdfs mit Vektor Inhalt enthalten sind. Die InDesign Datei dazu hatte immer um die 40 MB.
    Seit dem update auf CC sind die neuen .indd Dateien plötzlich auf 230 MB gewachsen, und beim nächsten abspeichern dann auf 430 MB.
    ich speichere die Dateien, wenn ein Schwung Korrekturen kommt immer neu ab, damit ich zur letzten Version zurückkehren kann, deshalb kann ich nachverfolgen, wann die Daten so gewachsen sind... der Inhalt ist immer gleich, es sind ca. 120 Seiten, mit ca. 60 Tabellen und 35 Grafiken, die als pdf mit Illustrator geöffnet und dort in CMYK eingefärbt wurden. Von den 40 bis zu den 430 MB hat sich an meiner Vorgehensweise nichts geändert... wie kann das sein, was kann ich dagegen tun?
    Danke!

    It's sometimes best when changing version of Indesign to use File>Export and choose IDML
    then open that in the new version of Indesign.
    You can do this with your current files and see if the problem is fixed.

  • Is it possible to use Facetime between Mac and iPad with the same Apple ID?

    Hello,
    I have a MacBook Pro and an iPad. May MacBook is used by my wife and me at home. I take the Pad with me when I travel. On the MacBook I have and Apple ID registered. It is the same I use with the iPad. Do I need a differnt ID for my wife if we want to use Facetime? Or do I need to create a seperate user-profile for my wife on the MacBook?
    Thanks for your feedback in advance.

    Hi
    I use the same apple id for the same thing when i travel between myself and people at home over my iphone and the ipad i leave at home always seems to work of for me
    I normally just give it a little test before i leave each time by signing in of both devices and trying ringing myself
    Hope this helps

  • Can sync  to mac and windows with the same device

    I just bought my partner an iphone, and he wants to know if once activated through itunes, will the phone sync to any computer regardless of the operating system as long as itunes is installed. We have Macs at home but he has windows in the office.

    iphonecuty...I connect & sync my iPhone with an iMac at home and a Windows PC at work. However, the work PC only syncs my calendar and contacts; all of the iTunes content is synched only from the iMac. Works fine this way.
    HTH
    QS

Maybe you are looking for

  • Stuck with showDetails, View Bind Variable and I18N

    Hi all, I have a very weird situation. I am creating a view object with a bind variable. I then create a JSF page, and drag a table based on the view to the screen. I now drag the "ExecuteWithParam" action to the screen, and create it as a parameteri

  • Printing Report via page fragment instead of .jspx

    Hi, I am using Jasper reports for printing the report for each selected patient in a table in my software, When I call the printing method from a .jspx button it works, but when i do the same work in a page fragment than my report did not run. Anyone

  • Javamail in applet

    Hi, I am trying to send a mail from a java applet using the javamail api. I've done a lot of homework since I'm new to java. I succeeded to create the applet which sends mail (not from the browser) and then I put it in a test html file. I read that t

  • ITunes 11.1.4 and 11.1.5 error with XP

    I have 3 ea XP 32-bit machines not behaving OK with iTunes 11.1.4 and/or 11.1.5. All are Windows XP Pro DK SP3 32-bit - 1 is a PC and 2 are Macs with Bootcamp running XP. iTunes 11.1.3 runs fine on all 3. No problems whatsoever. 11.1.4 and 11.1.5 bot

  • CR: Error in File ~tmp2be86bbf9f5e260.rpt: Database Connector Error

    dear all, this has finally got the better of me. i have been successfully scheduling a set of reports each month, until now. they all come back with the following error, each with a different ~tmp.rpt file Error in File ~tmp2be86bbf9f5e260.rpt: Datab