Package net.geco.model.impl

Source Code of net.geco.model.impl.PunchImpl

/**
* Copyright (c) 2009 Simon Denier
* Released under the MIT License (see LICENSE file)
*/
package net.geco.model.impl;

import java.util.Date;

import net.geco.model.Punch;


public class PunchImpl implements Punch {
 
  private int code;
  private Date time;
 
  public Punch clone() {
    try {
      Punch clone = (Punch) super.clone();
      clone.setTime((Date) getTime().clone());
      return clone;
    } catch (CloneNotSupportedException e) {
      e.printStackTrace();
    }
    return null;
  }

  public int getCode() {
    return code;
  }
  public void setCode(int code) {
    this.code = code;
  }

  public Date getTime() {
    return time;
  }
  public void setTime(Date time) {
    this.time = time;
  }
}
TOP

Related Classes of net.geco.model.impl.PunchImpl

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.