Cleanup
This commit is contained in:
parent
c68da8b787
commit
d9773f15ef
1 changed files with 0 additions and 29 deletions
|
@ -1,29 +0,0 @@
|
|||
package org.ligi.passandroid.model;
|
||||
|
||||
import android.support.annotation.NonNull;
|
||||
|
||||
public class CountedType implements Comparable<CountedType> {
|
||||
public final String type;
|
||||
public final Integer count;
|
||||
|
||||
public CountedType(String type, Integer count) {
|
||||
this.type = type;
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(@NonNull CountedType another) {
|
||||
return another.count - count;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (!(o instanceof CountedType)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
CountedType other = (CountedType) o;
|
||||
|
||||
return type.equals(other.type) && count.equals(other.count);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue