@HashCodeAndEqualsPlugin.Enhance public static class HashCodeAndEqualsPlugin.WithNonNullableFields extends HashCodeAndEqualsPlugin
HashCodeAndEqualsPlugin that assumes that all fields are non-nullable unless they are explicitly marked.HashCodeAndEqualsPlugin.AnnotationOrderComparator, HashCodeAndEqualsPlugin.Enhance, HashCodeAndEqualsPlugin.Sorted, HashCodeAndEqualsPlugin.ValueHandling, HashCodeAndEqualsPlugin.ValueMatcher, HashCodeAndEqualsPlugin.WithNonNullableFieldsPlugin.Engine, Plugin.Factory, Plugin.ForElementMatcher, Plugin.NoOp, Plugin.WithPreprocessorElementMatcher.Junction<S>Plugin.Factory.Simple, Plugin.Factory.UsingReflection| 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, close, make, matchesprotected ElementMatcher<FieldDescription> nonNullable(ElementMatcher<FieldDescription> matcher)
nonNullable in class HashCodeAndEqualsPluginmatcher - The matcher that identifies fields that are either nullable or non-nullable.Copyright © 2014–2021. All rights reserved.