struct Crysda::HashBuilder

Overview

Custom Hashing helper. This provides a calculated hash of contents which is consistent on each and every run. This doesn't conflict with and/or override Crystal Hashing functionality which is used for object equality checks. Hash value generated by this builder is only used for internal grouping purposes to ensure the consistency on each and every run/invocation. Refer to CustomColumnValue for more details and usage purposes.

Defined in:

crysda/utils.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def add(val : Bool) #

[View source]
def add(val : Char) #

[View source]
def add(val : String) #

[View source]
def add(val : AnyVal) #

[View source]
def add(val : Nil) #

[View source]
def add(val : Iterable) #

[View source]
def add(value : Float32) #

[View source]
def add(value : Float64) #

[View source]
def add(value : Float) #

[View source]
def add(val : Int) #

[View source]
def add(val : UUID) #

[View source]
def add(val : CustomColumnValue) #

[View source]
def add(val) #

[View source]
def hashcode(val) #

[View source]
def hashcode : Int64 #

[View source]