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