Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Kann eine Hashtable auf die Daten von einen Vektor zugreifen?

Empfohlene Antworten

wenn ja, wie?

thx

gicio

Also due willst die Daten eines Vektor in ein Hashtable umportieren??? Hab ich das richtig verstanden?

yeep!

du hast es richtig erfasst...

ist es überhaupt möglich??

oder erst ab 1.4 verfügbar?

thx

gicio

Hi

Ich bin mir nicht sicher, ob er das kann, bzw. nicht kann. Allerdings kann ich es mir nicht vorstellen und zwar aus folgendem Grund:

Ein Hashtable besteht immer aus einem Key-Value Paar, d.h. er hat einen Key und den zugehörigen Wert. Ein Hashtable selbst hat nur beliebig viele Objekte hintereinander geklatscht, ohne jede Ordnung bezüglich Keys.

Wie möchtest Du nun also festlegen, welche Eigenschaft des Objektes aus dem Vector als Key und welche als Value im Hashtable gespeichert werden soll ?

Schreib Dir doch selbst ne Methode mit der Du durch den Vector gehst und jedes Objekt so wie DU es brauchst in einen Hashtable schreibst, das ist wohl am sichersten und am wenigsten Aufwand (max 10 Zeilen).

Erbeere

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.