示例#1
0
 public void insert(ReceiverLossListEntry entry)
 {
     lock (backingList)
     {
         if (!backingList.Contains(entry))
         {
             backingList.Add(entry);
         }
     }
 }
示例#2
0
        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);
        }
示例#3
0
 public bool contains(ReceiverLossListEntry obj)
 {
     return(backingList.Contains(obj));
 }
示例#4
0
 /**
  * order by increasing sequence number
  */
 public int compareTo(ReceiverLossListEntry o)
 {
     return((int)(sequenceNumber - o.sequenceNumber));
 }