001 package org.kuali.maven.plugins.graph.pojo; 002 003 public class LabelCount implements Comparable<LabelCount> { 004 String label; 005 int count; 006 007 public LabelCount() { 008 this(null, 0); 009 } 010 011 public LabelCount(String label, int count) { 012 super(); 013 this.label = label; 014 this.count = count; 015 } 016 017 public String getLabel() { 018 return label; 019 } 020 021 public void setLabel(String label) { 022 this.label = label; 023 } 024 025 public int getCount() { 026 return count; 027 } 028 029 public void setCount(int count) { 030 this.count = count; 031 } 032 033 @Override 034 public int compareTo(LabelCount other) { 035 return count > other.count ? 1 : count < other.count ? -1 : 0; 036 } 037 038 }