Esempio n. 1
0
 private static InMemoryNoteBucket AddIfNotNull(InMemoryNoteBucket result, Note note
                                                )
 {
     if (note != null)
     {
         return(result.Append(note));
     }
     else
     {
         return(result);
     }
 }
Esempio n. 2
0
        internal override InMemoryNoteBucket Append(Note note)
        {
            int cell             = Cell(note);
            InMemoryNoteBucket b = (InMemoryNoteBucket)table[cell];

            if (b == null)
            {
                LeafBucket n = new LeafBucket(prefixLen + 2);
                table[cell] = n.Append(note);
                cnt++;
            }
            else
            {
                InMemoryNoteBucket n = b.Append(note);
                if (n != b)
                {
                    table[cell] = n;
                }
            }
            return(this);
        }
Esempio n. 3
0
		private static InMemoryNoteBucket AddIfNotNull(InMemoryNoteBucket result, Note note
			)
		{
			if (note != null)
			{
				return result.Append(note);
			}
			else
			{
				return result;
			}
		}