Last change
on this file was
3,
checked in by zeiss, 15 years ago
|
|
-
Property svn:mime-type set to
text/plain
|
File size:
391 bytes
|
Rev | Line | |
---|
[3] | 1 | package de.ugoe.cs.swe.memos.datamodel; |
---|
| 2 | |
---|
| 3 | public class IntegerMap implements Comparable<IntegerMap> { |
---|
| 4 | public int index; |
---|
| 5 | public int value; |
---|
| 6 | |
---|
| 7 | public IntegerMap(int index, int value) { |
---|
| 8 | this.index = index; |
---|
| 9 | this.value = value; |
---|
| 10 | } |
---|
| 11 | |
---|
| 12 | public int compareTo(IntegerMap argument) { |
---|
| 13 | if (this.value < argument.value) |
---|
| 14 | return -1; |
---|
| 15 | if (this.value > argument.value) |
---|
| 16 | return 1; |
---|
| 17 | |
---|
| 18 | return 0; |
---|
| 19 | } |
---|
| 20 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.