github.com/whatap/golib@v0.0.22/util/hmap/IntLinkedSetry.go (about) 1 package hmap 2 3 import ( 4 "fmt" 5 ) 6 7 type IntLinkedSetry struct { 8 key int32 9 hash_next *IntLinkedSetry 10 link_next *IntLinkedSetry 11 link_prev *IntLinkedSetry 12 } 13 14 func (this *IntLinkedSetry) Get() int32 { 15 return this.key 16 } 17 18 func (this *IntLinkedSetry) Equals(o *IntLinkedSetry) bool { 19 return this.key == o.key 20 } 21 22 func (this *IntLinkedSetry) HashCode() uint { 23 return uint(this.key) 24 } 25 26 func (this *IntLinkedSetry) ToString() string { 27 return fmt.Sprintf("%d", this.key) 28 }