BRYHashCodeBuilder 2.0.0

BRYHashCodeBuilder 2.0.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Apr 2015

Maintained by Bryan Irace.



  • By
  • Bryan Irace

Utility for determining object hash codes, based on Apache Commons HashCodeBuilder.

- (NSUInteger)hash {
    return [[[[[BRYHashCodeBuilder builderWithInitialValue:17 multiplier:37]
               appendObject:self.name]
              appendBool:self.isHidden]
             appendFloat:self.width]
            appendInteger:self.index].hashCode;
}

License

Available for use under the MIT license: http://bryan.mit-license.org