HashCodeBuilder

class HashCodeBuilder(initialValue: Int = 31, multiplier: Int = 31)

A utility class for building hash codes using a custom algorithm.

See also

for creating a hash code using a builder action.

Constructors

Link copied to clipboard
constructor(initialValue: Int = 31, multiplier: Int = 31)

Functions

Link copied to clipboard
fun append(value: Any?): HashCodeBuilder

Appends the hash code of the given value to the current hash code.

Link copied to clipboard
fun build(): Int

Computes and returns the final hash code.