package com.monkeyapp.blog.models;

import com.fasterxml.jackson.annotation.JsonProperty;

public class TagViewModel implements Comparable<TagViewModel> {
    @JsonProperty("tag")
    private final String name;

    @JsonProperty("count")
    private final long count;

    public TagViewModel(String name, long count) {
        this.name = name;
        this.count = count;
    }

    @Override
    public int compareTo(TagViewModel other) {
        return name.compareTo(other.name);
    }
}

@@ -198,20 +198,19 @@
  String 
-name
+tag
 ;%0A%0A    @
@@ -293,20 +293,19 @@
 (String 
-name
+tag
 , long c
@@ -329,19 +329,17 @@
 his.
-name = name
+tag = tag
 ;%0A  
@@ -447,20 +447,19 @@
  return 
-name
+tag
 .compare
@@ -471,12 +471,11 @@
 her.
-name
+tag
 );%0A 

fix typos in TagViewModel