Timeline for Caveats of using String.hashCode() on a switch on java < 1.7
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 12, 2017 at 7:31 | history | edited | CommunityBot | replaced http://programmers.stackexchange.com/ with https://softwareengineering.stackexchange.com/ | |
| Feb 23, 2015 at 17:13 | comment | added | Tulains Córdova | "I cannot do if-then-else over every possible String value of the input" ... but you can do a switch on the hash of every possible value of the input? Please explain what do you plan to do in each case (not just break;) and I'll give you a solution. | |
| Feb 23, 2015 at 16:18 | answer | added | user7043 | timeline score: 3 | |
| Feb 23, 2015 at 16:17 | answer | added | Arseni Mourzenko | timeline score: 3 | |
| Feb 23, 2015 at 16:12 | comment | added | Zavior | Non-equal objects can have the same hashcode.. | |
| Feb 23, 2015 at 16:07 | review | First posts | |||
| Feb 23, 2015 at 16:13 | |||||
| Feb 23, 2015 at 16:03 | history | asked | Mindwin Remember Monica | CC BY-SA 3.0 |