File tree 1 file changed +5
-5
lines changed
src/main/java/org/springframework/data/domain
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 24
24
* defining the {@link #max() maximum} number of results within a repository finder method or if applicable a template
25
25
* operation.
26
26
* <p>
27
- * A {@link Limit#isUnlimited()} is used to indicate that there is no {@link Limit} defined, which should be favoured
27
+ * A {@link Limit#isUnlimited()} is used to indicate that there is no {@link Limit} defined, which should be favored
28
28
* over using {@literal null} or {@link java.util.Optional#empty()} to indicate the absence of an actual {@link Limit}.
29
29
* </p>
30
30
* {@link Limit} itself does not make assumptions about the actual {@link #max()} value sign. This means that a negative
31
31
* value may be valid within a defined context.
32
32
*
33
33
* @author Christoph Strobl
34
+ * @author Oliver Drotbohm
34
35
* @since 3.2
35
36
*/
36
- public sealed interface Limit permits Limited ,Unlimited {
37
+ public sealed interface Limit permits Limited , Unlimited {
37
38
38
39
/**
39
40
* @return a {@link Limit} instance that does not define {@link #max()} and answers {@link #isUnlimited()} with
@@ -89,7 +90,7 @@ public boolean isLimited() {
89
90
}
90
91
91
92
@ Override
92
- public boolean equals (Object obj ) {
93
+ public boolean equals (@ Nullable Object obj ) {
93
94
94
95
if (obj == null ) {
95
96
return false ;
@@ -109,7 +110,7 @@ public boolean equals(Object obj) {
109
110
110
111
@ Override
111
112
public int hashCode () {
112
- return max ^ ( max >>> 32 ) ;
113
+ return max ^ max >>> 32 ;
113
114
}
114
115
}
115
116
@@ -129,6 +130,5 @@ public int max() {
129
130
public boolean isLimited () {
130
131
return false ;
131
132
}
132
-
133
133
}
134
134
}
You can’t perform that action at this time.
0 commit comments