-
Notifications
You must be signed in to change notification settings - Fork 51
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
add support for withHelper for config field #264
Conversation
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(getName(), getType(), getDocumentation()); | ||
return Objects.hash(getName(), getType(), getDocumentation(), withHelper()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this follow the getter naming pattern? getWithHelper
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think with
is self sufficient here, adding get
seems redundant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pattern for retrieving private fields in java is to prefix with get<FieldName>
. It's ambiguous name makes it sound like a setter instead, or a builder helper.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
given the java naming scheme probably better to add a get
prefix since its the java style. When this was original added, I wasn't following the Java naming, and used the implicit behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, updated!
ee302e2
to
e8f79b0
Compare
Updates Config field to support withHelper option it partially supports. The withHelper option is used to generate a With-Helper function for a Config Field.