//PutInt function will add the key,value to the properties. The value is accepted as int however is stored as a string
//If the property was already present then the previous values is returned
PutInt function will add the key,value to the properties. The value is accepted as int however is stored as a string
If the property was already present then the previous values is returned
// PutInt function will add the key value to the properties . The value is accepted as int however is stored as a string // If the property was already present then the previous values is returned
func (p *Properties) PutInt(k string, v int) (int, error) {
	p.Lock()
	defer p.Unlock()
	var ret int
	var err error = nil
	if oldValue, ok := p.props[k]; ok {
		ret, err = strconv.Atoi(p.resolve(oldValue))
	}
	p.props[k] = createValue(k, strconv.Itoa(v))
	p.resolveAll()
	return ret, err
}
func ( p * Properties ) PutInt ( k string , v int ) ( int , error ) { p . Lock ( ) defer p . Unlock ( ) var ret int var err error = nil if oldValue , ok := p . props [ k ] ; ok { ret , err = strconv . Atoi ( p . resolve ( oldValue ) ) } p . props [ k ] = createValue ( k , strconv . Itoa ( v ) ) p . resolveAll ( ) return ret , err }
PutInt function will add the key,value to the properties.
PutInt function will add the key value to the properties .