public void insert(ReceiverLossListEntry entry) { lock (backingList) { if (!backingList.Contains(entry)) { backingList.Add(entry); } } }
public bool equals(Object obj) { if (this == obj) { return(true); } if (obj == null) { return(false); } if (this.GetType() != obj.GetType()) { return(false); } ReceiverLossListEntry other = (ReceiverLossListEntry)obj; if (sequenceNumber != other.sequenceNumber) { return(false); } return(true); }
public bool contains(ReceiverLossListEntry obj) { return(backingList.Contains(obj)); }
/** * order by increasing sequence number */ public int compareTo(ReceiverLossListEntry o) { return((int)(sequenceNumber - o.sequenceNumber)); }