Package com.opengamma.financial.security.swap

Examples of com.opengamma.financial.security.swap.VarianceSwapNotional


        return new SecurityNotional(uniqueId);
      }

      @Override
      public Notional visitVarianceSwapNotional(VarianceSwapNotional notional) {
        return new VarianceSwapNotional(currencyBeanToCurrency(bean.getCurrency()), bean.getAmount());
      }

    });
  }
View Full Code Here


        return new CommodityNotional();
      } else if (cls.isAssignableFrom(SecurityNotional.class)) {
        return new SecurityNotional(UniqueId.parse(str));
      } else if (cls.isAssignableFrom(VarianceSwapNotional.class)) {
        String[] s = str.split(" ", 2);
        return new VarianceSwapNotional(Currency.of(s[0].trim()), Double.parseDouble(s[1].trim()));
      }
      return null;
    }
View Full Code Here

TOP

Related Classes of com.opengamma.financial.security.swap.VarianceSwapNotional

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.