com.uncarved.helpers

class HashHelper

[source: com/uncarved/helpers/HashHelper.scala]

class HashHelper(seedOpt : scala.Option[Int], primeOpt : scala.Option[Int])
extends AnyRef
Helper class for defining hashCode
Parameters
seedOpt - An optional starting seed
primeOpt - An optional prime number used when combining results
Additional Constructor Summary
def this (s : Int) : HashHelper
def this : HashHelper
def this (s : Int, p : Int) : HashHelper
Value Summary
var contents : Int
val prime : Int
val seed : Int
Method Summary
def add (x : Double) : Int
def add (x : Char) : Int
def add (x : Boolean) : Int
def add (x : java.lang.String) : Int
def add (x : Int) : Int
def add (x : Float) : Int
def add (x : Long) : Int
def get : Int
def reset : Unit
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Additional Constructor Details
def this : HashHelper

def this(s : Int) : HashHelper

def this(s : Int, p : Int) : HashHelper

Value Details
val prime : Int

val seed : Int

var contents : Int

Method Details
def add(x : Boolean) : Int

def add(x : java.lang.String) : Int

def add(x : Int) : Int

def add(x : Char) : Int

def add(x : Long) : Int

def add(x : Float) : Int

def add(x : Double) : Int

def get : Int

def reset : Unit