What are "non-null fields"?

The third step in the "Generate equals() and hashCode()" dialog box asks you
to "Select all non-null fields". What is a non-null field? It is a field
that is guaranteed to not be null? (The documentation doesn't explain it.)


1 comment
Comment actions Permalink

Yes, these are fields that are not supposed to be null. There won't be null checks generated for such fields.

--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"


"Erik Hanson" <ehanson@comsys.com> wrote in message news:av4em5$7ho$1@is.intellij.net...

The third step in the "Generate equals() and hashCode()" dialog box asks you
to "Select all non-null fields". What is a non-null field? It is a field
that is guaranteed to not be null? (The documentation doesn't explain it.)

>
>


0

Please sign in to leave a comment.