@HashCodeAndEqualsPlugin.Enhance public static class HashCodeAndEqualsPlugin.WithNonNullableFields extends HashCodeAndEqualsPlugin
HashCodeAndEqualsPlugin that assumes that all fields are non-nullable unless they are explicitly marked.HashCodeAndEqualsPlugin.Enhance, HashCodeAndEqualsPlugin.ValueHandling, HashCodeAndEqualsPlugin.ValueMatcher, HashCodeAndEqualsPlugin.WithNonNullableFieldsElementMatcher.Junction<S>| Constructor and Description |
|---|
WithNonNullableFields() |
| Modifier and Type | Method and Description |
|---|---|
protected ElementMatcher<FieldDescription> |
nonNullable(ElementMatcher<FieldDescription> matcher)
Resolves the matcher to identify non-nullable fields.
|
apply, matchesprotected ElementMatcher<FieldDescription> nonNullable(ElementMatcher<FieldDescription> matcher)
HashCodeAndEqualsPluginnonNullable in class HashCodeAndEqualsPluginmatcher - The matcher that identifies fields that are either nullable or non-nullable.Copyright © 2014–2018. All rights reserved.