(that interface{})
| 971 | return 0 |
| 972 | } |
| 973 | func (this *RetentionDetail) Compare(that interface{}) int { |
| 974 | if that == nil { |
| 975 | if this == nil { |
| 976 | return 0 |
| 977 | } |
| 978 | return 1 |
| 979 | } |
| 980 | |
| 981 | that1, ok := that.(*RetentionDetail) |
| 982 | if !ok { |
| 983 | that2, ok := that.(RetentionDetail) |
| 984 | if ok { |
| 985 | that1 = &that2 |
| 986 | } else { |
| 987 | return 1 |
| 988 | } |
| 989 | } |
| 990 | if that1 == nil { |
| 991 | if this == nil { |
| 992 | return 0 |
| 993 | } |
| 994 | return 1 |
| 995 | } else if this == nil { |
| 996 | return -1 |
| 997 | } |
| 998 | return 0 |
| 999 | } |
| 1000 | func (this *RedactionDetail) Compare(that interface{}) int { |
| 1001 | if that == nil { |
| 1002 | if this == nil { |
no outgoing calls