PageRenderTime 24ms CodeModel.GetById 16ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/alaspatial/src/main/java/org/ala/spatial/analysis/index/OccurrenceSpecies.java

http://alageospatialportal.googlecode.com/
Java | 28 lines | 11 code | 3 blank | 14 comment | 0 complexity | d4396d6c4973e0f214233407d0075b77 MD5 | raw file
 1/*
 2 * To change this template, choose Tools | Templates
 3 * and open the template in the editor.
 4 */
 5package org.ala.spatial.analysis.index;
 6
 7/**
 8 *
 9 * @author Adam
10 */
11class OccurrenceSpecies implements Comparable<OccurrenceSpecies> {
12
13    String speciesName;
14    String rankName;
15    String commonName;
16    int count;
17
18    /**
19     * only valid for comparisons with OccurenceSpecies class
20     * 
21     * @param o
22     * @return
23     */
24    @Override
25    public int compareTo(OccurrenceSpecies o) {
26        return speciesName.compareTo(o.speciesName);
27    }
28}