1
/*FreeMind - A Program for creating and viewing Mindmaps
2
*Copyright (C) 2000-2005 Joerg Mueller, Daniel Polansky, Christian Foltin and others.
4
*See COPYING for Details
6
*This program is free software; you can redistribute it and/or
7
*modify it under the terms of the GNU General Public License
8
*as published by the Free Software Foundation; either version 2
9
*of the License, or (at your option) any later version.
11
*This program is distributed in the hope that it will be useful,
12
*but WITHOUT ANY WARRANTY; without even the implied warranty of
13
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
*GNU General Public License for more details.
16
*You should have received a copy of the GNU General Public License
17
*along with this program; if not, write to the Free Software
18
*Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
* Created on 05.07.2005
22
/*$Id: HistoryInformation.java,v 1.1.2.1 2005/07/06 06:00:03 christianfoltin Exp $*/
23
package freemind.modes;
25
import java.util.Date;
28
* Here, the creation and modification times of objects (by now, only for
31
* The storage as longs is preferred as they are normally inlined by the Java
37
public class HistoryInformation {
39
long lastModifiedAt=0l;
42
* Initializes to today.
44
public HistoryInformation() {
45
long now = new Date().getTime();
49
public HistoryInformation(Date createdAt, Date lastModifiedAt) {
50
this.createdAt = createdAt.getTime();
51
this.lastModifiedAt = lastModifiedAt.getTime();
53
public Date getCreatedAt() {
54
return new Date(createdAt);
56
public Date getLastModifiedAt() {
57
return new Date(lastModifiedAt);
59
public void setCreatedAt(Date createdAt) {
60
this.createdAt = createdAt.getTime();
62
public void setLastModifiedAt(Date lastModifiedAt) {
63
this.lastModifiedAt = lastModifiedAt.getTime();
b'\\ No newline at end of file'