~ubuntu-branches/ubuntu/vivid/mkgmap/vivid

« back to all changes in this revision

Viewing changes to src/uk/me/parabola/imgfmt/app/srt/SrtSortKey.java

  • Committer: Package Import Robot
  • Author(s): Andreas Tille
  • Date: 2014-08-13 22:13:41 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20140813221341-i9dzzjuto2o7hfh6
Tags: 0.0.0+svn3333-1
* New upstream version
  Closes: #745097
* add debian/classpath (thanks for the patch to Manfred Stock
  <manfred.stock+debian@gmail.com>)
  Closes: #741596
* d/copyright: DEP5

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
package uk.me.parabola.imgfmt.app.srt;
15
15
 
 
16
import java.util.Arrays;
 
17
 
16
18
/**
17
19
 * Sort key created from a Srt {@link Sort} object that allows strings to be compared according to that sorting
18
20
 * scheme.
48
50
                        }
49
51
                }
50
52
 
51
 
                if (this.key.length < other.key.length)
52
 
                        return -1;
53
 
                else if (this.key.length > other.key.length)
54
 
                        return 1;
 
53
                //if (this.key.length < other.key.length)
 
54
                //      return -1;
 
55
                //else if (this.key.length > other.key.length)
 
56
                //      return 1;
55
57
 
56
58
                if (second == other.second)
57
59
                        return 0;
64
66
        public T getObject() {
65
67
                return orig;
66
68
        }
 
69
 
 
70
        public String toString() {
 
71
                return String.format("%s,%d", Arrays.toString(key), second);
 
72
        }
67
73
}