meikl
meikl
@meikl
9 years ago

Could you please clarify this question? How .toString related to a template? Do you mean in an IDE like IDEA?

Endi Sukaj
Endi Sukaj
@endi-sukaj
9 years ago
@meikl 

You can define a toString template in IDEA at least (JSON, YAML, XML, etc...)

meikl
meikl
@meikl
9 years ago
@endi-sukaj 

Shouldn't this context be part of the question?

Endi Sukaj
Endi Sukaj
@endi-sukaj
9 years ago
@meikl 

I think it is. At least that's how I understood this question but bear in mind that I did not ask this question.

Adam Hardy
Adam Hardy
@ahardy42
9 years ago
@endi-sukaj 

Yes exactly. Of course anything can generate code, it doesn't have to be an IDE. You might be using vi and invoking a shell script, but you'll need a template. The question is not about that though, it's about the resulting code. I guess that is where the confusion comes in. I'll remove the word 'template', maybe it'll be more obvious.

Endi Sukaj
Endi Sukaj
@endi-sukaj
9 years ago
@ahardy42 

By resulting code you mean the string representation of the class generated by toString(), right? Also, are you looking for specific templates or just general formats?

undefinedurl nextprice drop