Last change
on this file since 3083 was 3083, checked in by bastiK, 14 years ago |
added svn:eol-style=native to source files
|
-
Property svn:eol-style
set to
native
|
File size:
669 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.history;
|
---|
3 |
|
---|
4 | /**
|
---|
5 | * PointInTimeType enumerates two points in time in the {@see History} of an {@see OsmPrimitive}.
|
---|
6 | * @author karl
|
---|
7 | *
|
---|
8 | */
|
---|
9 | public 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.