func NewIntegerOf(attr *spec.Attribute, value int64) Property {
	p := NewInteger(attr)
	_, err := p.Replace(value)
	if err != nil {
		panic(err)
	}
	return p
}
NewIntegerOf creates a new integer property of given value associated with attribute.
package prop
import (
	"fmt"
	"github.com/imulab/go-scim/pkg/v2/spec"
)
func NewInteger(attr *spec.Attribute) Property {
	ensureSingularIntegerType(attr)
	p := integerProperty{attr: attr, subscribers: []Subscriber{}}
	attr.ForEachAnnotation(func(annotation string, params map[string]interface{}) {
		if subscriber, ok := SubscriberFactory().Create(annotation, &p, params); ok {
			p.subscribers = append(p.subscribers, subscriber)
		}
	})
	return &p
}