01: package demo.continuations;
02:
03: import java.util.Date;
04:
05: public class OrderData {
06: enum ShippingMethod {
07: ground, express, air
08: }
09:
10: enum CreditCardType {
11: amex, visa, mastercard
12: }
13:
14: private ShippingMethod shippingMethod;
15: private CreditCardType creditCardType;
16: private String creditCardNumber;
17: private String creditCardExpiration;
18:
19: public void setShippingMethod(ShippingMethod shippingMethod) {
20: this .shippingMethod = shippingMethod;
21: }
22:
23: public ShippingMethod getShippingMethod() {
24: return shippingMethod;
25: }
26:
27: public void setCreditCardType(CreditCardType creditCardType) {
28: this .creditCardType = creditCardType;
29: }
30:
31: public CreditCardType getCreditCardType() {
32: return creditCardType;
33: }
34:
35: public void setCreditCardNumber(String creditCardNumber) {
36: this .creditCardNumber = creditCardNumber;
37: }
38:
39: public String getCreditCardNumber() {
40: return creditCardNumber;
41: }
42:
43: public void setCreditCardExpiration(String creditCardExpiration) {
44: this .creditCardExpiration = creditCardExpiration;
45: }
46:
47: public String getCreditCardExpiration() {
48: return creditCardExpiration;
49: }
50: }
|