예제 #1
0
 /// <param name="refs">
 /// the complete set of references. This should have been computed
 /// by applying updates to the advertised refs already discovered.
 /// </param>
 protected RefWriter(IDictionary <String, Ref> refs)
 {
     if (refs is RefMap)
     {
         this.refs = refs.Values;
     }
     else
     {
         this.refs = RefComparator.Sort(refs.Values);
     }
 }
예제 #2
0
 /**
  * @param refs
  *            the complete set of references. This should have been computed
  *            by applying updates to the advertised refs already discovered.
  */
 protected RefWriter(IEnumerable <Ref> refs)
 {
     this.refs = RefComparator.Sort(refs);
 }