Exemplo n.º 1
0
        public object Clone()
        {
            // the cast to Map is necessary, otherwise TreeMap will just
            // get backed by the original map, instead of copying it
            TreeMap copy = new TreeMap((Map)mBackingStore);

            return(copy);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Trim the current set of strike prices to the given set.
 /// </summary>
 /// <param name="strikeSet"></param>
 public void trimStrikes(SortedSet strikeSet)
 {
     double lowStrike = (double)strikeSet.first();
     double highStrike = (double)strikeSet.last();
     highStrike = highStrike + 0.0001;
     TreeMap trimmedStrikes = new TreeMap(subMap(lowStrike, highStrike));
     clear();
     putAll(trimmedStrikes);
 }
Exemplo n.º 3
0
		public object Clone()
		{
			// the cast to Map is necessary, otherwise TreeMap will just 
			// get backed by the original map, instead of copying it
			TreeMap copy = new TreeMap((Map)mBackingStore);
			return copy;
		}
Exemplo n.º 4
0
 public MamdaOptionContractSet()
 {
     mExchangeContracts = new TreeMap();
 }