java - Can class name be excluded from Lombok @ToString? -
project lombok's class annotation, @tostring
, used automatically generate tostring()
method within class annotates.
for class:
@tostring public class someclass { string field1="field #1"; string field2="field #2"; }
invoking generated tostring()
method produce output:
someclass(field1="field #1", field2="field #2")
optional elements of annotation can used include or exclude specific fields, want know is...
"is there way tell lombok exclude class name output?"
maybe like:
@tostring(exclude="#classname") public class someclass { ... }
no. @tostring
annotation not have option let that.
Comments
Post a Comment