source: josm/trunk/src/org/openstreetmap/josm/gui/history/PointInTimeType.java@ 6792

Last change on this file since 6792 was 5835, checked in by stoecker, 11 years ago

Javadoc fixes

  • Property svn:eol-style set to native
File size: 743 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.history;
3
4/**
5 * PointInTimeType enumerates two points in time in the {@link org.openstreetmap.josm.data.osm.history.History}
6 * of an {@link org.openstreetmap.josm.data.osm.OsmPrimitive}.
7 * @author karl
8 */
9public enum PointInTimeType {
10 /** the point in time selected as reference point when comparing two version */
11 REFERENCE_POINT_IN_TIME,
12
13 /** the point in time selected as current point when comparing two version */
14 CURRENT_POINT_IN_TIME;
15
16 public PointInTimeType opposite() {
17 if (this.equals(REFERENCE_POINT_IN_TIME))
18 return CURRENT_POINT_IN_TIME;
19 else
20 return REFERENCE_POINT_IN_TIME;
21 }
22}
Note: See TracBrowser for help on using the repository browser.