Is returns true if this wrapped record and another wrapped record have the same identifier, in other words if they are just two wrappers around the same *pb.Record object.
(b *Record)
| 48 | // record have the same identifier, in other words if they |
| 49 | // are just two wrappers around the same *pb.Record object. |
| 50 | func (w *Record) Is(b *Record) bool { |
| 51 | if w.record == nil || b.record == nil { |
| 52 | return false |
| 53 | } |
| 54 | return w.ID == b.ID |
| 55 | } |
| 56 | |
| 57 | // Get returns the index-th elements of the *pb.Record contained |
| 58 | // by this wrapper. |
no outgoing calls