//GetAsInt64 Function will return the value as int64 for the specified key. If no value is present for the corresponding
//key then the default value is returned.In case the value is present and it is not a int64 an error is thrown.
GetAsInt64 Function will return the value as int64 for the specified key. If no value is present for the corresponding
key then the default value is returned.In case the value is present and it is not a int64 an error is thrown.
// GetAsInt64 Function will return the value as int64 for the specified key . If no value is present for the corresponding // key then the default value is returned . In case the value is present and it is not a int64 an error is thrown .
func (p *Properties) GetAsInt64(k string, defaultVal int64) (int64, error) {
	p.RLock()
	defer p.RUnlock()
	if value, ok := p.resolvedProps[k]; ok {
		return strconv.ParseInt(value, 10, 64)
	}
	return defaultVal, nil
}
func ( p * Properties ) GetAsInt64 ( k string , defaultVal int64 ) ( int64 , error ) { p . RLock ( ) defer p . RUnlock ( ) if value , ok := p . resolvedProps [ k ] ; ok { return strconv . ParseInt ( value , 10 , 64 ) } return defaultVal , nil }
GetAsInt64 Function will return the value as int64 for the specified key.
GetAsInt64 Function will return the value as int64 for the specified key .