@Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        TagScan other = (TagScan) obj;
        if (id != other.id)
            return false;
        if (priority != other.priority)
            return false;
        if (Double.doubleToLongBits(random) != Double.doubleToLongBits(other.random))
            return false;
        if (!Objects.equals(tag, other.tag)) {
            return false;
        }
        return true;
    }