How HashMap works inside
Në shqip: Si punon HashMap nga brenda
ShpjegimiSQ
HashMap-i e ndan memorien në „kova“: hashCode() i çelësit vendos në cilën kovë shkon, dhe equals() e gjen saktë brenda kovës. Kur mbushet rreth 75% (load factor), e dyfishon madhësinë.
EnglishEN
HashMap splits its memory into “buckets”: the key's hashCode() decides which bucket it goes in, and equals() finds it exactly within the bucket. When about 75% full (the load factor), it doubles in size.
Si ta mendosh
Si dollapët e postës sipas shkronjës së parë të mbiemrit.
Lexoje në anglisht
Like post pigeonholes by the first letter of the surname.