Package net.bytebuddy.build
Class HashCodeAndEqualsPlugin.WithNonNullableFields
- java.lang.Object
-
- net.bytebuddy.build.HashCodeAndEqualsPlugin
-
- net.bytebuddy.build.HashCodeAndEqualsPlugin.WithNonNullableFields
-
- All Implemented Interfaces:
Plugin
,ElementMatcher<TypeDescription>
- Enclosing class:
- HashCodeAndEqualsPlugin
public static class HashCodeAndEqualsPlugin.WithNonNullableFields extends HashCodeAndEqualsPlugin
A version of theHashCodeAndEqualsPlugin
that assumes that all fields are non-nullable unless they are explicitly marked.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.bytebuddy.build.HashCodeAndEqualsPlugin
HashCodeAndEqualsPlugin.Enhance, HashCodeAndEqualsPlugin.ValueHandling, HashCodeAndEqualsPlugin.ValueMatcher, HashCodeAndEqualsPlugin.WithNonNullableFields
-
Nested classes/interfaces inherited from interface net.bytebuddy.matcher.ElementMatcher
ElementMatcher.Junction<S>
-
-
Constructor Summary
Constructors Constructor Description WithNonNullableFields()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ElementMatcher<FieldDescription>
nonNullable(ElementMatcher<FieldDescription> matcher)
Resolves the matcher to identify non-nullable fields.-
Methods inherited from class net.bytebuddy.build.HashCodeAndEqualsPlugin
apply, matches
-
-
-
-
Method Detail
-
nonNullable
protected ElementMatcher<FieldDescription> nonNullable(ElementMatcher<FieldDescription> matcher)
Description copied from class:HashCodeAndEqualsPlugin
Resolves the matcher to identify non-nullable fields.- Overrides:
nonNullable
in classHashCodeAndEqualsPlugin
- Parameters:
matcher
- The matcher that identifies fields that are either nullable or non-nullable.- Returns:
- The actual matcher to identify non-nullable fields.
-
-