object HashCode
Set of methods which allow easy implementation of hashCode
.
Example:
override def hashCode: Int = { var result = HashCode.SEED //collect the contributions of various fields result = HashCode.hash(result, fPrimitive) result = HashCode.hash(result, fObject) result = HashCode.hash(result, fArray) result }
- Source
- HashCode.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- HashCode
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All