
com.crawljax.plugins.crawloverview.model.StateCounter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of crawloverview-plugin Show documentation
Show all versions of crawloverview-plugin Show documentation
Generates an HTML report with a snapshot overview of what is crawled.
package com.crawljax.plugins.crawloverview.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Objects;
public class StateCounter {
private final String id;
private final int count;
@JsonCreator
public StateCounter(@JsonProperty("id") String id, @JsonProperty("count") int count) {
this.id = id;
this.count = count;
}
public int getCount() {
return count;
}
public String getId() {
return id;
}
@Override
public String toString() {
return Objects.toStringHelper(this)
.add("id", id)
.add("count", count)
.toString();
}
@Override
public int hashCode() {
return Objects.hashCode(id, count);
}
@Override
public boolean equals(Object object) {
if (object instanceof StateCounter) {
StateCounter that = (StateCounter) object;
return Objects.equal(this.id, that.id)
&& Objects.equal(this.count, that.count);
}
return false;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy