Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

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.

Logic behind Account Selector order?

Featured Replies

 

A hasmap is used. A hashmap does not guarantee order. You referenced the Java doc's iterator as a reference where it says "Iterator does not guarantee order". Well the same documentation in the Hashmap section says the exact same thing for Hashmap.

 

public class HashMap<K,V>

extends AbstractMap<K,V>

implements Map<K,V>, Cloneable, Serializable

Hash table based implementation of the Map interface. This implementation provides all of the optional map operations, and permits null values and the null key. (The HashMap class is roughly equivalent to Hashtable, except that it is unsynchronized and permits nulls.) This class makes no guarantees as to the order of the map

 

 

The Entry array backing the map does not respect the order of insertion because elements are inserted based on a hash of their hash value. The reason it can't guarantee any other kind of order is because of hash collision (which is pretty much unavoidable). Come to thing of it I'm actually not even sure anymore where the non-guarantee of order is introduced.. at insertion or retrieval.. you may have been right, eh time to hit the books I guess x) Peace

 

(dis thread hijack tho)

  • Author

The Entry array backing the map does not respect the order of insertion because elements are inserted based on a hash of their hash value. The reason it can't guarantee any other kind of order is because of hash collision (which is pretty much unavoidable). Come to thing of it I'm actually not even sure anymore where the non-guarantee of order is introduced.. at insertion or retrieval.. you may have been right, eh time to hit the books I guess x) Peace

 

(dis thread hijack tho)

I'm fine as long as the thread gets some attention. 

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.