Earthcomputer's Website
LCG Tools
Firing Squad Problem
Java HashSet Visualizer
Minecraft Panorama
Independence from the Tories Day
Catalogue
Contact Me
Java HashSet Visualizer
Operations
Value:
Add
Remove
Contains
Iterator
Clear
Output
=>
Code (JavaScript)
equals(a, b)
return a === b;
hashCode(a)
let h = 0; for (let i = 0; i < a.length; i++) h = (Math.imul(31, h) + a.charCodeAt(i)) | 0; return h;
Comparable
compareTo(a, b)
return a < b ? -1 : a > b ? 1 : 0;
Preset:
String
Integer
Minecraft ChunkPos-Long
Minecraft ChunkPos
Minecraft BlockPos
Minecraft TileTick
Load