@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        LinkedThread that = (LinkedThread) o;

        if (id != that.id) return false;
        if (headLine != null ? !headLine.equals(that.headLine) : that.headLine != null) return false;

        return true;
    }