File: Order.java

package info (click to toggle)
libjibx-java 1.0.1-2
  • links: PTS
  • area: contrib
  • in suites: lenny
  • size: 15,748 kB
  • ctags: 10,069
  • sloc: java: 29,151; xml: 7,963; makefile: 14
file content (19 lines) | stat: -rw-r--r-- 413 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

package example19;

import java.util.ArrayList;

public class Order {
    public Customer customer;
    public double total;
    public ArrayList items;
    
    public static Order orderFactory() {
        System.out.println("Order.orderFactory called");
        return new Order();
    }
    public void preget() {
        System.out.println("Order.preget called");
        total = items.size() * 1.5;
    }
}