@@ -0,0 +1,1938 @@
+/*%0A * %5BNayati%5D TrackItem.java%0A *%0A * Defines model class representing package being tracked.%0A *%0A * (c) 2015 Sanjeev Premi (spremi@ymail.com)%0A *%0A * SPDX-License-Identifier: BSD-3-Clause%0A *                          (http://spdx.org/licenses/BSD-3-Clause.html)%0A *%0A */%0A%0Apackage self.premi.sanjeev.nayati.model;%0A%0A%0A/**%0A * Model class representing package being tracked.%0A */%0Apublic class TrackItem %7B%0A    /**%0A     * Id (from database). Else -1.%0A     */%0A    private long id;%0A%0A    /**%0A     * Tracking number%0A     */%0A    private String trackNum;%0A%0A    /**%0A     * Name of the item%0A     */%0A    private String name;%0A%0A    /**%0A     * Item category%0A     */%0A    private long category;%0A%0A    /**%0A     * Item state (-1 for unknown)%0A     */%0A    private int state;%0A%0A%0A    public TrackItem(long id, String trackNum, String name, long category, int state) %7B%0A        this.id = id;%0A        this.trackNum = trackNum;%0A        this.name = name;%0A        this.category = category;%0A        this.state = state;%0A    %7D%0A%0A    public TrackItem(String trackNum, String name, long category) %7B%0A        this(-1, trackNum, name, category, -1);%0A    %7D%0A%0A%0A    public long getId() %7B%0A        return id;%0A    %7D%0A%0A    public void setId(long id) %7B%0A        this.id = id;%0A    %7D%0A%0A    public String getName() %7B%0A        return name;%0A    %7D%0A%0A    public void setName(String name) %7B%0A        this.name = name;%0A    %7D%0A%0A    public long getCategory() %7B%0A        return category;%0A    %7D%0A%0A    public void setCategory(long category) %7B%0A        this.category = category;%0A    %7D%0A%0A    public String getTrackNum() %7B%0A        return trackNum;%0A    %7D%0A%0A    public void setTrackNum(String trackNum) %7B%0A        this.trackNum = trackNum;%0A    %7D%0A%0A%0A    public int getState() %7B%0A        return state;%0A    %7D%0A%0A    public void setState(int state) %7B%0A        this.state = state;%0A    %7D%0A%0A%0A    @Override%0A    public String toString() %7B%0A        return %22TrackItem %5B%22 + id + %22%5D %22 + trackNum + %22, %22 + name + %22, %22 + category + %22, %22 + state;%0A    %7D%0A%7D%0A

Define class 'TrackItem'