Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement toString() #2

Closed
johnjohndoe opened this issue Apr 3, 2014 · 3 comments
Closed

Implement toString() #2

johnjohndoe opened this issue Apr 3, 2014 · 3 comments

Comments

@johnjohndoe
Copy link

It would be helpful if you could also generate the toString() method for each model class. It should output the values for each member variable. Here is an example:

@Override
public String toString() {
    return "deg = " + mDeg + ", gust = " + mGust + ", speed = " + mSpeed;
}

In the UI you can add an option to let the user decide whether the method should be generated.

@jonfhancock
Copy link
Owner

Thanks for the suggestion! I'll work on that.

@jonfhancock
Copy link
Owner

Done! Also deployed the change to App Engine.

@johnjohndoe
Copy link
Author

Nice. Though I have to say, I tested it with the OpenWeatherMap API and it does not generate toString() methods for all classes and does not include all members.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants