public DeltaMap(IDictionary <K, V> originalMap)
     : this(originalMap, MapFactory.HashMapFactory())
 {
 }
예제 #2
0
 /// <summary>
 /// Creates a new empty TwoDimensionalCollectionValuedMap which uses a HashMap as the
 /// underlying Map, and HashSets as the Collections in each mapping.
 /// </summary>
 /// <remarks>
 /// Creates a new empty TwoDimensionalCollectionValuedMap which uses a HashMap as the
 /// underlying Map, and HashSets as the Collections in each mapping. Does not
 /// treat Collections as immutable.
 /// </remarks>
 public TwoDimensionalCollectionValuedMap()
     : this(MapFactory.HashMapFactory <K2, ICollection <V> >(), CollectionFactory.HashSetFactory <V>(), false)
 {
 }
예제 #3
0
 /// <summary>
 /// Creates a new empty TwoDimensionalCollectionValuedMap which uses a HashMap as the
 /// underlying Map.
 /// </summary>
 /// <remarks>
 /// Creates a new empty TwoDimensionalCollectionValuedMap which uses a HashMap as the
 /// underlying Map.  Does not treat Collections as immutable.
 /// </remarks>
 /// <param name="cf">
 /// a CollectionFactory which will be used to generate the
 /// Collections in each mapping
 /// </param>
 public TwoDimensionalCollectionValuedMap(CollectionFactory <V> cf)
     : this(MapFactory.HashMapFactory <K2, ICollection <V> >(), cf, false)
 {
 }
 public BinaryHeapPriorityQueue()
     : this(MapFactory.HashMapFactory <E, BinaryHeapPriorityQueue.Entry <E> >())
 {
 }
 public BinaryHeapPriorityQueue(int initCapacity)
     : this(MapFactory.HashMapFactory <E, BinaryHeapPriorityQueue.Entry <E> >(), initCapacity)
 {
 }
 public virtual BinaryHeapPriorityQueue <E> DeepCopy()
 {
     return(DeepCopy(MapFactory.HashMapFactory <E, BinaryHeapPriorityQueue.Entry <E> >()));
 }
 public static Edu.Stanford.Nlp.Util.TwoDimensionalMap <K1, K2, V> HashMap <K1, K2, V>()
 {
     return(new Edu.Stanford.Nlp.Util.TwoDimensionalMap <K1, K2, V>(MapFactory.HashMapFactory <K1, IDictionary <K2, V> >(), MapFactory.HashMapFactory <K2, V>()));
 }
 public TwoDimensionalMap()
     : this(MapFactory.HashMapFactory <K1, IDictionary <K2, V> >(), MapFactory.HashMapFactory <K2, V>())
 {
 }
 /// <summary>
 /// Creates a new empty CollectionValuedMap which uses a HashMap as the
 /// underlying Map.
 /// </summary>
 /// <remarks>
 /// Creates a new empty CollectionValuedMap which uses a HashMap as the
 /// underlying Map. Does not treat Collections as immutable.
 /// </remarks>
 /// <param name="cf">
 /// A CollectionFactory which will be used to generate the Collections
 /// in each mapping
 /// </param>
 public CollectionValuedMap(CollectionFactory <V> cf)
     : this(MapFactory.HashMapFactory(), cf, false)
 {
 }
 /// <summary>
 /// Creates a new empty CollectionValuedMap which uses a HashMap as the
 /// underlying Map, and HashSets as the Collections in each mapping.
 /// </summary>
 /// <remarks>
 /// Creates a new empty CollectionValuedMap which uses a HashMap as the
 /// underlying Map, and HashSets as the Collections in each mapping. Does not
 /// treat Collections as immutable.
 /// </remarks>
 public CollectionValuedMap()
     : this(MapFactory.HashMapFactory(), CollectionFactory.HashSetFactory(), false)
 {
 }