29 lines
570 B
Java
29 lines
570 B
Java
package eu.dnetlib.broker.controllers.objects;
|
|
|
|
public class DispatcherStatus implements Comparable<DispatcherStatus> {
|
|
|
|
private final String name;
|
|
private final long count;
|
|
|
|
public DispatcherStatus(final String name, final long count) {
|
|
this.name = name;
|
|
this.count = count;
|
|
}
|
|
|
|
public String getName() {
|
|
return this.name;
|
|
}
|
|
|
|
public long getCount() {
|
|
return this.count;
|
|
}
|
|
|
|
@Override
|
|
public int compareTo(final DispatcherStatus o) {
|
|
if (this.name == null) { return -1; }
|
|
if (o.name == null) { return 1; }
|
|
return this.name.compareTo(o.name);
|
|
}
|
|
|
|
}
|