示例#1
0
func (self *connSet) Less(than llrb.Item) bool {
	if self == nil {
		return true
	}
	if than == nil {
		return false
	}
	thanCs := than.(*connSet)
	if thanCs == nil {
		return false
	}
	selfKey := llrb.String(self.key())
	thanKey := llrb.String(than.(*connSet).key())
	return selfKey.Less(thanKey)
}
示例#2
0
func (self *connListItem) Less(than llrb.Item) bool {
    selfKey := llrb.String(self.key())
    thanKey := llrb.String(than.(*connListItem).key())
    return selfKey.Less(thanKey)
}