Skip to content

Commit

Permalink
Localized is now Comparable.
Browse files Browse the repository at this point in the history
  • Loading branch information
albertus82 committed Jul 23, 2016
1 parent 31e391f commit 165eb06
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/main/java/it/albertus/util/Localized.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package it.albertus.util;

public abstract class Localized {
public abstract class Localized implements Comparable<Localized> {

public abstract String getString();

Expand Down Expand Up @@ -40,4 +40,9 @@ else if (!getString().equals(other.getString())) {
return true;
}

@Override
public int compareTo(Localized o) {
return this.getString().compareTo(o.getString());
}

}
2 changes: 1 addition & 1 deletion src/main/resources/version.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Semantic Versioning (http://semver.org)
version.number=3.1.0
version.date=2016-07-22
version.date=2016-07-23

0 comments on commit 165eb06

Please sign in to comment.