Android Open Source - GasTracker Entry






From Project

Back to project page GasTracker.

License

The source code is released under:

Copyright 2014 kurtzy317

If you think the Android project GasTracker listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.mindalsoblown.gastracker;
//w w w .j av  a 2  s .  co  m
import java.sql.Date;

public class Entry {

  private Date Date;
  private Double Gallons;
  private Double TripMiles;
  private Double TotalMiles;
  private Double CarMPG;
  private Double CalculatedMPG;
  private Double AverageMPG;
  private int Id;
  
  public Entry (Date date, double gallons, double tripMiles, Double totalMiles, double carMPG, double calculatedMPG, double averageMPG)
  {
    Date = date;
    Gallons = gallons;
    TripMiles = tripMiles;
    TotalMiles = totalMiles;
    CarMPG = carMPG;
    CalculatedMPG = calculatedMPG;
    AverageMPG = averageMPG;
  }
  
  public Entry (Date date, double gallons, double tripMiles, Double totalMiles, double carMPG, double calculatedMPG, double averageMPG, int id)
  {
    Date = date;
    Gallons = gallons;
    TripMiles = tripMiles;
    TotalMiles = totalMiles;
    CarMPG = carMPG;
    CalculatedMPG = calculatedMPG;
    AverageMPG = averageMPG;
    Id = id;
  }

  public int getId() {
    return Id;
  }

  public void setId(int id) {
    Id = id;
  }

  public Entry()
  {
  }

  public Date getDate() {
    return Date;
  }

  public void setDate(Date date) {
    Date = date;
  }

  public Double getGallons() {
    return Gallons;
  }

  public void setGallons(Double gallons) {
    Gallons = gallons;
  }

  public Double getTripMiles() {
    return TripMiles;
  }

  public void setTripMiles(Double tripMiles) {
    TripMiles = tripMiles;
  }

  public Double getTotalMiles() {
    return TotalMiles;
  }

  public void setTotalMiles(Double totalMiles) {
    TotalMiles = totalMiles;
  }

  public Double getCarMPG() {
    return CarMPG;
  }

  public void setCarMPG(Double carMPG) {
    CarMPG = carMPG;
  }

  public Double getCalculatedMPG() {
    return CalculatedMPG;
  }

  public void setCalculatedMPG(Double calculatedMPG) {
    CalculatedMPG = calculatedMPG;
  }

  public Double getAverageMPG() {
    return AverageMPG;
  }

  public void setAverageMPG(Double averageMPG) {
    AverageMPG = averageMPG;
  }
  
  
}




Java Source Code List

com.mindalsoblown.gastracker.AddEntry.java
com.mindalsoblown.gastracker.DatabaseConnector.java
com.mindalsoblown.gastracker.Entry.java
com.mindalsoblown.gastracker.FillUpDetail.java
com.mindalsoblown.gastracker.History.java
com.mindalsoblown.gastracker.Login.java
com.mindalsoblown.gastracker.MainMenu.java
com.mindalsoblown.gastracker.Register.java
com.mindalsoblown.gastracker.Stats.java
com.mindalsoblown.gastracker.User.java