Skip to content

Commit 480d628

Browse files
fixed
1 parent bf27eda commit 480d628

File tree

11 files changed

+31
-31
lines changed

11 files changed

+31
-31
lines changed

commands/src/main/java/com/wizardlybump17/wlib/command/input/object/AllowedUUIDInputs.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private Values(@NotNull List<UUID> values) {
8383
public boolean equals(Object object) {
8484
if (object == null || getClass() != object.getClass())
8585
return false;
86-
Values values1 = (Values) object;
86+
AllowedUUIDInputs.Values values1 = (AllowedUUIDInputs.Values) object;
8787
return Objects.equals(values, values1.values);
8888
}
8989

@@ -102,8 +102,8 @@ public String toString() {
102102

103103
final class Any implements AllowedUUIDInputs {
104104

105-
private static final @NotNull Any NULLABLE = new Any(true);
106-
private static final @NotNull Any NOT_NULL = new Any(false);
105+
private static final @NotNull AllowedUUIDInputs.Any NULLABLE = new AllowedUUIDInputs.Any(true);
106+
private static final @NotNull AllowedUUIDInputs.Any NOT_NULL = new AllowedUUIDInputs.Any(false);
107107

108108
private final boolean nullable;
109109

@@ -120,7 +120,7 @@ public boolean isAllowed(@Nullable UUID input) {
120120
public boolean equals(Object object) {
121121
if (object == null || getClass() != object.getClass())
122122
return false;
123-
Any any = (Any) object;
123+
AllowedUUIDInputs.Any any = (AllowedUUIDInputs.Any) object;
124124
return nullable == any.nullable;
125125
}
126126

commands/src/main/java/com/wizardlybump17/wlib/command/input/primitive/AllowedCharacterInputs.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public boolean isAllowed(@Nullable Character input) {
129129
public boolean equals(Object object) {
130130
if (object == null || getClass() != object.getClass())
131131
return false;
132-
Values values1 = (Values) object;
132+
AllowedCharacterInputs.Values values1 = (AllowedCharacterInputs.Values) object;
133133
return ignoreCase == values1.ignoreCase && Objects.equals(values, values1.values) && Objects.equals(toCheck, values1.toCheck);
134134
}
135135

commands/src/main/java/com/wizardlybump17/wlib/command/input/primitive/number/AllowedNumberInputs.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class Values<N extends Number> implements AllowedNumberInputs<N>, AllowedListInp
133133
public boolean equals(Object object) {
134134
if (object == null || getClass() != object.getClass())
135135
return false;
136-
Values<?> values1 = (Values<?>) object;
136+
AllowedNumberInputs.Values<?> values1 = (AllowedNumberInputs.Values<?>) object;
137137
return Objects.equals(values, values1.values);
138138
}
139139

commands/src/main/java/com/wizardlybump17/wlib/command/input/string/AllowedStringInputs.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public boolean isAllowed(@Nullable String input) {
6868
public boolean equals(Object object) {
6969
if (object == null || getClass() != object.getClass())
7070
return false;
71-
Values values1 = (Values) object;
71+
AllowedStringInputs.Values values1 = (AllowedStringInputs.Values) object;
7272
return ignoreCase == values1.ignoreCase && Objects.equals(values, values1.values) && Objects.equals(toCheck, values1.toCheck);
7373
}
7474

@@ -137,8 +137,8 @@ public String toString() {
137137

138138
final class Any implements AllowedStringInputs {
139139

140-
private static final @NotNull Any NULLABLE = new Any(true);
141-
private static final @NotNull Any NOT_NULL = new Any(false);
140+
private static final @NotNull AllowedStringInputs.Any NULLABLE = new AllowedStringInputs.Any(true);
141+
private static final @NotNull AllowedStringInputs.Any NOT_NULL = new AllowedStringInputs.Any(false);
142142

143143
private final boolean nullable;
144144

@@ -159,7 +159,7 @@ public boolean nullable() {
159159
public boolean equals(Object object) {
160160
if (object == null || getClass() != object.getClass())
161161
return false;
162-
Any any = (Any) object;
162+
AllowedStringInputs.Any any = (AllowedStringInputs.Any) object;
163163
return nullable == any.nullable;
164164
}
165165

commands/src/main/java/com/wizardlybump17/wlib/command/suggestion/object/JsonElementSuggester.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public boolean equals(Object o) {
5858
if (o == null || getClass() != o.getClass())
5959
return false;
6060
if (!super.equals(o)) return false;
61-
Values values = (Values) o;
61+
JsonElementSuggester.Values values = (JsonElementSuggester.Values) o;
6262
return Objects.equals(gson, values.gson);
6363
}
6464

commands/src/main/java/com/wizardlybump17/wlib/command/suggestion/primitive/number/ByteSuggester.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,19 @@ public interface ByteSuggester extends PrimitiveSuggester<Byte>, NumberSuggester
5757

5858
final class Values extends AbstractValuesSuggester<Byte> implements ByteSuggester {
5959

60-
private static final @NotNull Values POSITIVE = new Values(List.of(
60+
private static final @NotNull ByteSuggester.Values POSITIVE = new ByteSuggester.Values(List.of(
6161
(byte) 0,
6262
(byte) 50,
6363
(byte) 100,
6464
(byte) 127
6565
));
66-
private static final @NotNull Values NEGATIVE = new Values(List.of(
66+
private static final @NotNull ByteSuggester.Values NEGATIVE = new ByteSuggester.Values(List.of(
6767
(byte) -128,
6868
(byte) -100,
6969
(byte) -50,
7070
(byte) -1
7171
));
72-
private static final @NotNull Values UNLIMITED = new Values(List.of(
72+
private static final @NotNull ByteSuggester.Values UNLIMITED = new ByteSuggester.Values(List.of(
7373
(byte) -128,
7474
(byte) -100,
7575
(byte) -50,

commands/src/main/java/com/wizardlybump17/wlib/command/suggestion/primitive/number/IntegerSuggester.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,23 +55,23 @@ public interface IntegerSuggester extends PrimitiveSuggester<Integer>, NumberSug
5555

5656
final class Values extends AbstractValuesSuggester<Integer> implements IntegerSuggester {
5757

58-
private static final @NotNull Values POSITIVE = new Values(List.of(
58+
private static final @NotNull IntegerSuggester.Values POSITIVE = new IntegerSuggester.Values(List.of(
5959
0,
6060
50,
6161
200,
6262
3000,
6363
50000,
6464
100000
6565
));
66-
private static final @NotNull Values NEGATIVE = new Values(List.of(
66+
private static final @NotNull IntegerSuggester.Values NEGATIVE = new IntegerSuggester.Values(List.of(
6767
-100000,
6868
-50000,
6969
-3000,
7070
-200,
7171
-50,
7272
-1
7373
));
74-
private static final @NotNull Values UNLIMITED = new Values(List.of(
74+
private static final @NotNull IntegerSuggester.Values UNLIMITED = new IntegerSuggester.Values(List.of(
7575
-100000,
7676
-50000,
7777
-3000,

commands/src/main/java/com/wizardlybump17/wlib/command/suggestion/primitive/number/LongSuggester.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,23 +57,23 @@ public interface LongSuggester extends PrimitiveSuggester<Long>, NumberSuggester
5757

5858
final class Values extends AbstractValuesSuggester<Long> implements LongSuggester {
5959

60-
private static final @NotNull Values POSITIVE = new Values(List.of(
60+
private static final @NotNull LongSuggester.Values POSITIVE = new LongSuggester.Values(List.of(
6161
0L,
6262
50L,
6363
200L,
6464
3000L,
6565
50000L,
6666
100000L
6767
));
68-
private static final @NotNull Values NEGATIVE = new Values(List.of(
68+
private static final @NotNull LongSuggester.Values NEGATIVE = new LongSuggester.Values(List.of(
6969
-100000L,
7070
-50000L,
7171
-3000L,
7272
-200L,
7373
-50L,
7474
-1L
7575
));
76-
private static final @NotNull Values UNLIMITED = new Values(List.of(
76+
private static final @NotNull LongSuggester.Values UNLIMITED = new LongSuggester.Values(List.of(
7777
-100000L,
7878
-50000L,
7979
-3000L,

commands/src/main/java/com/wizardlybump17/wlib/command/suggestion/primitive/number/ShortSuggester.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,21 +57,21 @@ public interface ShortSuggester extends PrimitiveSuggester<Short>, NumberSuggest
5757

5858
final class Values extends AbstractValuesSuggester<Short> implements ShortSuggester {
5959

60-
private static final @NotNull Values POSITIVE = new Values(List.of(
60+
private static final @NotNull ShortSuggester.Values POSITIVE = new ShortSuggester.Values(List.of(
6161
(short) 0,
6262
(short) 50,
6363
(short) 100,
6464
(short) 3000,
6565
(short) 32767
6666
));
67-
private static final @NotNull Values NEGATIVE = new Values(List.of(
67+
private static final @NotNull ShortSuggester.Values NEGATIVE = new ShortSuggester.Values(List.of(
6868
(short) -32768,
6969
(short) -3000,
7070
(short) -100,
7171
(short) -50,
7272
(short) -1
7373
));
74-
private static final @NotNull Values UNLIMITED = new Values(List.of(
74+
private static final @NotNull ShortSuggester.Values UNLIMITED = new ShortSuggester.Values(List.of(
7575
(short) -32768,
7676
(short) -3000,
7777
(short) -100,

core/src/main/java/com/wizardlybump17/wlib/command/input/AllowedOfflinePlayerInputs.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ private Values(@NotNull List<OfflinePlayer> values) {
8080
public boolean equals(Object object) {
8181
if (object == null || getClass() != object.getClass())
8282
return false;
83-
Values values1 = (Values) object;
83+
AllowedOfflinePlayerInputs.Values values1 = (AllowedOfflinePlayerInputs.Values) object;
8484
return Objects.equals(values, values1.values);
8585
}
8686

@@ -99,8 +99,8 @@ public String toString() {
9999

100100
final class Any implements AllowedOfflinePlayerInputs {
101101

102-
private static final @NotNull Any NULLABLE = new Any(true);
103-
private static final @NotNull Any NOT_NULL = new Any(false);
102+
private static final @NotNull AllowedOfflinePlayerInputs.Any NULLABLE = new AllowedOfflinePlayerInputs.Any(true);
103+
private static final @NotNull AllowedOfflinePlayerInputs.Any NOT_NULL = new AllowedOfflinePlayerInputs.Any(false);
104104

105105
private final boolean nullable;
106106

@@ -117,7 +117,7 @@ public boolean isAllowed(@Nullable OfflinePlayer input) {
117117
public boolean equals(Object object) {
118118
if (object == null || getClass() != object.getClass())
119119
return false;
120-
Any any = (Any) object;
120+
AllowedOfflinePlayerInputs.Any any = (AllowedOfflinePlayerInputs.Any) object;
121121
return nullable == any.nullable;
122122
}
123123

0 commit comments

Comments
 (0)