@Override
    public int hashCode() {
        int result = starClass != null ? starClass.hashCode() : 0;
        result = 31 * result + temperature;
        result = 31 * result + name.hashCode();
        return result;
    }