當前位置: 首頁>>代碼示例>>Java>>正文


Java OrderType類代碼示例

本文整理匯總了Java中io.pivotal.portfolio.domain.OrderType的典型用法代碼示例。如果您正苦於以下問題:Java OrderType類的具體用法?Java OrderType怎麽用?Java OrderType使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


OrderType類屬於io.pivotal.portfolio.domain包,在下文中一共展示了OrderType類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: order

import io.pivotal.portfolio.domain.OrderType; //導入依賴的package包/類
public static Order order() {
	Order order1 = new Order();
	order1.setAccountId(ACCOUNT_ID);
	order1.setCompletionDate(COMPLETION_DATE);
	order1.setOrderFee(FEE);
	order1.setOrderType(OrderType.BUY);
	order1.setPrice(PRICE);
	order1.setQuantity(QUANTITY);
	order1.setSymbol(SYMBOL);
	return order1;
}
 
開發者ID:trujillano,項目名稱:springBootTrader-aos,代碼行數:12,代碼來源:ServiceTestConfiguration.java

示例2: order2

import io.pivotal.portfolio.domain.OrderType; //導入依賴的package包/類
public static Order order2() {
	Order order1 = new Order();
	order1.setOrderId(1);
	order1.setAccountId(ACCOUNT_ID);
	order1.setCompletionDate(COMPLETION_DATE);
	order1.setOrderFee(FEE);
	order1.setOrderType(OrderType.BUY);
	order1.setPrice(PRICE);
	order1.setQuantity(QUANTITY);
	order1.setSymbol(SYMBOL);
	return order1;
}
 
開發者ID:trujillano,項目名稱:springBootTrader-aos,代碼行數:13,代碼來源:ServiceTestConfiguration.java

示例3: sellOrder

import io.pivotal.portfolio.domain.OrderType; //導入依賴的package包/類
public static Order sellOrder() {
	Order order1 = new Order();
	order1.setOrderId(1);
	order1.setAccountId(ACCOUNT_ID);
	order1.setCompletionDate(COMPLETION_DATE);
	order1.setOrderFee(FEE);
	order1.setOrderType(OrderType.SELL);
	order1.setPrice(PRICE);
	order1.setQuantity(QUANTITY);
	order1.setSymbol(SYMBOL);
	return order1;
}
 
開發者ID:trujillano,項目名稱:springBootTrader-aos,代碼行數:13,代碼來源:ServiceTestConfiguration.java

示例4: order

import io.pivotal.portfolio.domain.OrderType; //導入依賴的package包/類
public static Order order() {
	Order order1 = new Order();
	order1.setUserId(USER_ID);
	order1.setAccountId(ACCOUNT_ID);
	order1.setCompletionDate(COMPLETION_DATE);
	order1.setOrderFee(FEE);
	order1.setOrderType(OrderType.BUY);
	order1.setPrice(PRICE);
	order1.setQuantity(QUANTITY);
	order1.setSymbol(SYMBOL);
	return order1;
}
 
開發者ID:pivotal-bank,項目名稱:portfolio-service,代碼行數:13,代碼來源:ServiceTestConfiguration.java

示例5: order2

import io.pivotal.portfolio.domain.OrderType; //導入依賴的package包/類
public static Order order2() {
	Order order1 = new Order();
	order1.setOrderId(1);
	order1.setAccountId(ACCOUNT_ID);
	order1.setUserId(USER_ID);
	order1.setCompletionDate(COMPLETION_DATE);
	order1.setOrderFee(FEE);
	order1.setOrderType(OrderType.BUY);
	order1.setPrice(PRICE);
	order1.setQuantity(QUANTITY);
	order1.setSymbol(SYMBOL);
	return order1;
}
 
開發者ID:pivotal-bank,項目名稱:portfolio-service,代碼行數:14,代碼來源:ServiceTestConfiguration.java

示例6: sellOrder

import io.pivotal.portfolio.domain.OrderType; //導入依賴的package包/類
public static Order sellOrder() {
	Order order1 = new Order();
	order1.setOrderId(1);
	order1.setUserId(USER_ID);
	order1.setAccountId(ACCOUNT_ID);
	order1.setCompletionDate(COMPLETION_DATE);
	order1.setOrderFee(FEE);
	order1.setOrderType(OrderType.SELL);
	order1.setPrice(PRICE);
	order1.setQuantity(QUANTITY);
	order1.setSymbol(SYMBOL);
	return order1;
}
 
開發者ID:pivotal-bank,項目名稱:portfolio-service,代碼行數:14,代碼來源:ServiceTestConfiguration.java


注:本文中的io.pivotal.portfolio.domain.OrderType類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。