public class HashCodeCollider
extends java.lang.Object
Adapted from MIT-licensed code by Andriy Plokhotnyuk at https://github.com/plokhotnyuk/jsoniter-scala/blob/26b5ecdd4f8c2ab7e97bd8106cefdda4c1e701ce/jsoniter-scala-benchmark/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/macros/HashCodeCollider.scala#L6.
Constructor and Description |
---|
HashCodeCollider() |
Modifier and Type | Method and Description |
---|---|
static scala.collection.Iterator<java.lang.Object> |
asciiChars() |
static scala.collection.Iterator<scala.Tuple2<java.lang.Object,java.lang.Object>> |
asciiCharsAndHash(int previousHash) |
static scala.collection.immutable.IndexedSeq<java.lang.Object> |
visibleChars() |
static scala.collection.Iterator<java.lang.String> |
zeroHashCodeIterator()
Creates an iterator of Strings that all have hashCode == 0
|
public static scala.collection.immutable.IndexedSeq<java.lang.Object> visibleChars()
public static scala.collection.Iterator<java.lang.Object> asciiChars()
public static scala.collection.Iterator<scala.Tuple2<java.lang.Object,java.lang.Object>> asciiCharsAndHash(int previousHash)
public static scala.collection.Iterator<java.lang.String> zeroHashCodeIterator()