java - Turn MoreObjects.toStringHelper(this)...toString() into list of strings -
i have class implemented tostring() method this:
// returns "classname{x=1, y=foo}" public string tostring() moreobjects.tostringhelper(this) .add("x", 1) .add("y", "foo") .add("z", "bar") .tostring(); }
now in class convert tostring()
result string list, this:
["1", "foo", "bar"]
is there way use regex expression this?
Comments
Post a Comment