• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

trydofor / professional-mirana / #112

19 Mar 2025 04:46AM UTC coverage: 87.128% (+2.7%) from 84.4%
#112

push

web-flow
Merge pull request #53 from trydofor/develop

bump 3.0.0 to semver

1645 of 1747 new or added lines in 25 files covered. (94.16%)

2 existing lines in 1 file now uncovered.

7141 of 8196 relevant lines covered (87.13%)

0.87 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

94.58
/src/main/java/pro/fessional/mirana/best/AssertMessage.java
1
package pro.fessional.mirana.best;
2

3
import org.jetbrains.annotations.Contract;
4
import org.jetbrains.annotations.NotNull;
5
import org.jetbrains.annotations.Nullable;
6
import pro.fessional.mirana.cond.PredictVal;
7
import pro.fessional.mirana.i18n.AssertErrorEnum;
8
import pro.fessional.mirana.i18n.CodeEnum;
9
import pro.fessional.mirana.pain.MessageException;
10
import pro.fessional.mirana.text.FormatUtil;
11

12
import java.util.Collection;
13
import java.util.Map;
14

15
/**
16
 * <pre>
17
 * pre-check / post-check. throw MessageException(default stackless) if not match.
18
 *
19
 * NOTE1: should use isTure/isFalse instead of xxObj to assert primitive type (int/long/float/double)
20
 * </pre>
21
 *
22
 * @author trydofor
23
 * @since 2019-10-05
24
 */
25
public class AssertMessage {
×
26

27
    //
28
    @Contract("false,_->fail")
29
    public static void isTrue(boolean b, @NotNull String msg) {
30
        if (!b) throw new MessageException(msg);
1✔
31
    }
1✔
32

33
    @Contract("false,_,_->fail")
34
    public static void isTrue(boolean b, @NotNull String msg, Object... args) {
35
        if (!b) throw new MessageException(FormatUtil.logback(msg, args));
1✔
36
    }
1✔
37

38
    @Contract("false,_->fail")
39
    public static void isTrue(boolean b, @NotNull CodeEnum code) {
40
        if (!b) throw new MessageException(code);
1✔
41
    }
1✔
42

43
    @Contract("false,_,_->fail")
44
    public static void isTrue(boolean b, @NotNull CodeEnum code, Object... args) {
45
        if (!b) throw new MessageException(code, args);
1✔
46
    }
1✔
47

48
    @Contract("false->fail")
49
    public static void isTrue(boolean b) {
50
        isTrue(b, AssertErrorEnum.AssertTrue);
1✔
51
    }
1✔
52

53
    //
54
    @Contract("null,_->fail")
55
    public static void isTrue(boolean[] bs, @NotNull String msg) {
56
        isTrue(PredictVal.is(bs, true), msg);
1✔
57
    }
1✔
58

59
    @Contract("null,_,_->fail")
60
    public static void isTrue(boolean[] bs, @NotNull String msg, Object... args) {
61
        isTrue(PredictVal.is(bs, true), msg, args);
1✔
62
    }
1✔
63

64
    @Contract("null,_->fail")
65
    public static void isTrue(boolean[] bs, @NotNull CodeEnum code) {
66
        isTrue(PredictVal.is(bs, true), code);
1✔
67
    }
1✔
68

69
    @Contract("null,_,_->fail")
70
    public static void isTrue(boolean[] bs, @NotNull CodeEnum code, Object... args) {
71
        isTrue(PredictVal.is(bs, true), code, args);
1✔
72
    }
1✔
73

74
    @Contract("null->fail")
75
    public static void isTrue(boolean[] bs) {
76
        isTrue(bs, AssertErrorEnum.AssertTrue);
1✔
77
    }
1✔
78

79
    //
80
    @Contract("true,_->fail")
81
    public static void isFalse(boolean b, @NotNull String msg) {
82
        if (b) throw new MessageException(msg);
1✔
83
    }
1✔
84

85
    @Contract("true,_,_->fail")
86
    public static void isFalse(boolean b, @NotNull String msg, Object... args) {
87
        if (b) throw new MessageException(FormatUtil.logback(msg, args));
1✔
88
    }
1✔
89

90
    @Contract("true,_->fail")
91
    public static void isFalse(boolean b, @NotNull CodeEnum code) {
92
        if (b) throw new MessageException(code);
1✔
93
    }
1✔
94

95
    @Contract("true,_,_->fail")
96
    public static void isFalse(boolean b, @NotNull CodeEnum code, Object... args) {
97
        if (b) throw new MessageException(code, args);
1✔
98
    }
1✔
99

100
    @Contract("true->fail")
101
    public static void isFalse(boolean b) {
102
        isFalse(b, AssertErrorEnum.AssertFalse);
1✔
103
    }
1✔
104
    //
105
    @Contract("null,_->fail")
106
    public static void isFalse(boolean[] bs, @NotNull String msg) {
107
        isTrue(PredictVal.is(bs, false), msg);
1✔
108
    }
1✔
109

110
    @Contract("null,_,_->fail")
111
    public static void isFalse(boolean[] bs, @NotNull String msg, Object... args) {
112
        isTrue(PredictVal.is(bs, false), msg, args);
1✔
113
    }
1✔
114

115
    @Contract("null,_->fail")
116
    public static void isFalse(boolean[] bs, @NotNull CodeEnum code) {
117
        isTrue(PredictVal.is(bs, false), code);
1✔
118
    }
1✔
119

120
    @Contract("null,_,_->fail")
121
    public static void isFalse(boolean[] bs, @NotNull CodeEnum code, Object... args) {
122
        isTrue(PredictVal.is(bs, false), code, args);
1✔
123
    }
1✔
124

125
    @Contract("null->fail")
126
    public static void isFalse(boolean[] bs) {
127
        isFalse(bs, AssertErrorEnum.AssertFalse);
1✔
128
    }
1✔
129

130
    // ////
131
    @Contract("!null,_->fail")
132
    public static void isNull(@Nullable Object b, @NotNull String msg) {
133
        if (b != null) throw new MessageException(msg);
1✔
134
    }
1✔
135

136
    @Contract("!null,_,_->fail")
137
    public static void isNull(@Nullable Object b, @NotNull String msg, Object... args) {
138
        if (b != null) throw new MessageException(FormatUtil.logback(msg, args));
1✔
139
    }
1✔
140

141
    @Contract("!null,_->fail")
142
    public static void isNull(@Nullable Object b, @NotNull CodeEnum code) {
143
        if (b != null) throw new MessageException(code);
1✔
144
    }
1✔
145

146
    @Contract("!null,_,_->fail")
147
    public static void isNull(@Nullable Object b, @NotNull CodeEnum code, Object... args) {
148
        if (b != null) throw new MessageException(code, args);
1✔
149
    }
1✔
150

151
    @Contract("!null->fail")
152
    public static void isNull(@Nullable Object b) {
153
        isNull(b, AssertErrorEnum.AssertNull);
1✔
154
    }
1✔
155

156
    //
157
    @Contract("null,_->fail")
158
    public static void notNull(@Nullable Object b, @NotNull String msg) {
159
        if (b == null) throw new MessageException(msg);
1✔
160
    }
1✔
161

162
    @Contract("null,_,_->fail")
163
    public static void notNull(@Nullable Object b, @NotNull String msg, Object... args) {
164
        if (b == null) throw new MessageException(FormatUtil.logback(msg, args));
1✔
165
    }
1✔
166

167
    @Contract("null,_->fail")
168
    public static void notNull(@Nullable Object b, @NotNull CodeEnum code) {
169
        if (b == null) throw new MessageException(code);
1✔
170
    }
1✔
171

172
    @Contract("null,_,_->fail")
173
    public static void notNull(@Nullable Object b, @NotNull CodeEnum code, Object... args) {
174
        if (b == null) throw new MessageException(code, args);
1✔
175
    }
1✔
176

177
    @Contract("null->fail")
178
    public static void notNull(@Nullable Object b) {
179
        notNull(b, AssertErrorEnum.AssertNotNull);
1✔
180
    }
1✔
181

182
    // ////
183
    public static void isEmpty(@Nullable CharSequence c, @NotNull String msg) {
184
        if (c != null && c.length() > 0) throw new MessageException(msg);
1✔
185
    }
1✔
186

187
    public static void isEmpty(@Nullable CharSequence c, @NotNull String msg, Object... args) {
188
        if (c != null && c.length() > 0) throw new MessageException(FormatUtil.logback(msg, args));
1✔
189
    }
1✔
190

191
    public static void isEmpty(@Nullable CharSequence c, @NotNull CodeEnum code) {
192
        if (c != null && c.length() > 0) throw new MessageException(code);
1✔
193
    }
1✔
194

195
    public static void isEmpty(@Nullable CharSequence c, @NotNull CodeEnum code, Object... args) {
196
        if (c != null && c.length() > 0) throw new MessageException(code, args);
1✔
197
    }
1✔
198

199
    public static void isEmpty(@Nullable CharSequence c) {
200
        isEmpty(c, AssertErrorEnum.AssertEmpty);
1✔
201
    }
1✔
202

203
    //
204
    @Contract("null,_->fail")
205
    public static void notEmpty(@Nullable CharSequence c, @NotNull String msg) {
206
        if (c == null || c.length() == 0) throw new MessageException(msg);
1✔
207
    }
1✔
208

209
    @Contract("null,_,_->fail")
210
    public static void notEmpty(@Nullable CharSequence c, @NotNull String msg, Object... args) {
211
        if (c == null || c.length() == 0) throw new MessageException(FormatUtil.logback(msg, args));
1✔
212
    }
1✔
213

214
    @Contract("null,_->fail")
215
    public static void notEmpty(@Nullable CharSequence c, @NotNull CodeEnum code) {
216
        if (c == null || c.length() == 0) throw new MessageException(code);
1✔
217
    }
1✔
218

219
    @Contract("null,_,_->fail")
220
    public static void notEmpty(@Nullable CharSequence c, @NotNull CodeEnum code, Object... args) {
221
        if (c == null || c.length() == 0) throw new MessageException(code, args);
1✔
222
    }
1✔
223

224
    @Contract("null->fail")
225
    public static void notEmpty(@Nullable CharSequence c) {
226
        notEmpty(c, AssertErrorEnum.AssertNotEmpty);
1✔
227
    }
1✔
228

229
    // ////
230
    public static void isEmpty(@Nullable Collection<?> c, @NotNull String msg) {
231
        if (c != null && !c.isEmpty()) throw new MessageException(msg);
1✔
232
    }
1✔
233

234
    public static void isEmpty(@Nullable Collection<?> c, @NotNull String msg, Object... args) {
235
        if (c != null && !c.isEmpty()) throw new MessageException(FormatUtil.logback(msg, args));
1✔
236
    }
1✔
237

238
    public static void isEmpty(@Nullable Collection<?> c, @NotNull CodeEnum code) {
239
        if (c != null && !c.isEmpty()) throw new MessageException(code);
1✔
240
    }
1✔
241

242
    public static void isEmpty(@Nullable Collection<?> c, @NotNull CodeEnum code, Object... args) {
243
        if (c != null && !c.isEmpty()) throw new MessageException(code, args);
1✔
244
    }
1✔
245

246
    public static void isEmpty(@Nullable Collection<?> c) {
247
        isEmpty(c, AssertErrorEnum.AssertEmpty);
1✔
248
    }
1✔
249

250
    //
251
    @Contract("null,_->fail")
252
    public static void notEmpty(@Nullable Collection<?> c, @NotNull String msg) {
253
        if (c == null || c.isEmpty()) throw new MessageException(msg);
1✔
254
    }
1✔
255

256
    @Contract("null,_,_->fail")
257
    public static void notEmpty(@Nullable Collection<?> c, @NotNull String msg, Object... args) {
258
        if (c == null || c.isEmpty()) throw new MessageException(FormatUtil.logback(msg, args));
1✔
259
    }
1✔
260

261
    @Contract("null,_->fail")
262
    public static void notEmpty(@Nullable Collection<?> c, @NotNull CodeEnum code) {
263
        if (c == null || c.isEmpty()) throw new MessageException(code);
1✔
264
    }
1✔
265

266
    @Contract("null,_,_->fail")
267
    public static void notEmpty(@Nullable Collection<?> c, @NotNull CodeEnum code, Object... args) {
268
        if (c == null || c.isEmpty()) throw new MessageException(code, args);
1✔
269
    }
1✔
270

271
    @Contract("null->fail")
272
    public static void notEmpty(@Nullable Collection<?> c) {
273
        notEmpty(c, AssertErrorEnum.AssertNotEmpty);
1✔
274
    }
1✔
275

276
    // ////
277
    public static void isEmpty(@Nullable Map<?, ?> c, @NotNull String msg) {
278
        if (c != null && !c.isEmpty()) throw new MessageException(msg);
1✔
279
    }
1✔
280

281
    public static void isEmpty(@Nullable Map<?, ?> c, @NotNull String msg, Object... args) {
282
        if (c != null && !c.isEmpty()) throw new MessageException(FormatUtil.logback(msg, args));
1✔
283
    }
1✔
284

285
    public static void isEmpty(@Nullable Map<?, ?> c, @NotNull CodeEnum code) {
286
        if (c != null && !c.isEmpty()) throw new MessageException(code);
1✔
287
    }
1✔
288

289
    public static void isEmpty(@Nullable Map<?, ?> c, @NotNull CodeEnum code, Object... args) {
290
        if (c != null && !c.isEmpty()) throw new MessageException(code, args);
1✔
291
    }
1✔
292

293
    public static void isEmpty(@Nullable Map<?, ?> c) {
294
        isEmpty(c, AssertErrorEnum.AssertEmpty);
1✔
295
    }
1✔
296

297
    //
298
    @Contract("null,_->fail")
299
    public static void notEmpty(@Nullable Map<?, ?> c, @NotNull String msg) {
300
        if (c == null || c.isEmpty()) throw new MessageException(msg);
1✔
301
    }
1✔
302

303
    @Contract("null,_,_->fail")
304
    public static void notEmpty(@Nullable Map<?, ?> c, @NotNull String msg, Object... args) {
305
        if (c == null || c.isEmpty()) throw new MessageException(FormatUtil.logback(msg, args));
1✔
306
    }
1✔
307

308
    @Contract("null,_->fail")
309
    public static void notEmpty(@Nullable Map<?, ?> c, @NotNull CodeEnum code) {
310
        if (c == null || c.isEmpty()) throw new MessageException(code);
1✔
311
    }
1✔
312

313
    @Contract("null,_,_->fail")
314
    public static void notEmpty(@Nullable Map<?, ?> c, @NotNull CodeEnum code, Object... args) {
315
        if (c == null || c.isEmpty()) throw new MessageException(code, args);
1✔
316
    }
1✔
317

318
    @Contract("null->fail")
319
    public static void notEmpty(@Nullable Map<?, ?> c) {
320
        notEmpty(c, AssertErrorEnum.AssertNotEmpty);
1✔
321
    }
1✔
322

323
    // ////
324
    public static void isEmpty(@Nullable Object[] c, @NotNull String msg) {
325
        if (c != null && c.length > 0) throw new MessageException(msg);
1✔
326
    }
1✔
327

328
    public static void isEmpty(@Nullable Object[] c, @NotNull String msg, Object... args) {
329
        if (c != null && c.length > 0) throw new MessageException(FormatUtil.logback(msg, args));
1✔
330
    }
1✔
331

332
    public static void isEmpty(@Nullable Object[] c, @NotNull CodeEnum code) {
333
        if (c != null && c.length > 0) throw new MessageException(code);
1✔
334
    }
1✔
335

336
    public static void isEmpty(@Nullable Object[] c, @NotNull CodeEnum code, Object... args) {
337
        if (c != null && c.length > 0) throw new MessageException(code, args);
1✔
338
    }
1✔
339

340
    public static void isEmpty(@Nullable Object[] c) {
341
        isEmpty(c, AssertErrorEnum.AssertEmpty);
1✔
342
    }
1✔
343

344
    //
345
    @Contract("null,_->fail")
346
    public static void notEmpty(@Nullable Object[] c, @NotNull String msg) {
347
        if (c == null || c.length == 0) throw new MessageException(msg);
1✔
348
    }
1✔
349

350
    @Contract("null,_,_->fail")
351
    public static void notEmpty(@Nullable Object[] c, @NotNull String msg, Object... args) {
352
        if (c == null || c.length == 0) throw new MessageException(FormatUtil.logback(msg, args));
1✔
353
    }
1✔
354

355
    @Contract("null,_->fail")
356
    public static void notEmpty(@Nullable Object[] c, @NotNull CodeEnum code) {
357
        if (c == null || c.length == 0) throw new MessageException(code);
1✔
358
    }
1✔
359

360
    @Contract("null,_,_->fail")
361
    public static void notEmpty(@Nullable Object[] c, @NotNull CodeEnum code, Object... args) {
362
        if (c == null || c.length == 0) throw new MessageException(code, args);
1✔
363
    }
1✔
364

365
    @Contract("null->fail")
366
    public static void notEmpty(@Nullable Object[] c) {
367
        notEmpty(c, AssertErrorEnum.AssertNotEmpty);
1✔
368
    }
1✔
369

370
    //
371
    @Contract("null,_,_->fail")
372
    public static void isEqual(@Nullable Object a, @NotNull Object b, @NotNull String msg) {
373
        if (a == null || !a.equals(b)) throw new MessageException(msg);
1✔
374
    }
1✔
375

376
    @Contract("null,_,_,_->fail")
377
    public static void isEqual(@Nullable Object a, @NotNull Object b, @NotNull String msg, Object... args) {
378
        if (a == null || !a.equals(b)) throw new MessageException(FormatUtil.logback(msg, args));
1✔
379
    }
1✔
380

381
    @Contract("null,_,_->fail")
382
    public static void isEqual(@Nullable Object a, @NotNull Object b, @NotNull CodeEnum code) {
383
        if (a == null || !a.equals(b)) throw new MessageException(code);
1✔
384
    }
1✔
385

386
    @Contract("null,_,_,_->fail")
387
    public static void isEqual(@Nullable Object a, @NotNull Object b, @NotNull CodeEnum code, Object... args) {
388
        if (a == null || !a.equals(b)) throw new MessageException(code, args);
1✔
389
    }
1✔
390

391
    @Contract("null,_->fail")
392
    public static void isEqual(@Nullable Object a, @NotNull Object b) {
393
        isEqual(a, b, AssertErrorEnum.AssertEqual1, b);
1✔
394
    }
1✔
395

396
    //
397
    public static void notEqual(@Nullable Object a, @NotNull Object b, @NotNull String msg) {
398
        if (a != null && a.equals(b)) throw new MessageException(msg);
1✔
399
    }
1✔
400

401
    public static void notEqual(@Nullable Object a, @NotNull Object b, @NotNull String msg, Object... args) {
402
        if (a != null && a.equals(b)) throw new MessageException(FormatUtil.logback(msg, args));
1✔
403
    }
1✔
404

405
    public static void notEqual(@Nullable Object a, @NotNull Object b, @NotNull CodeEnum code) {
406
        if (a != null && a.equals(b)) throw new MessageException(code);
1✔
407
    }
1✔
408

409
    public static void notEqual(@Nullable Object a, @NotNull Object b, @NotNull CodeEnum code, Object... args) {
410
        if (a != null && a.equals(b)) throw new MessageException(code, args);
1✔
411
    }
1✔
412

413
    public static void notEqual(@Nullable Object a, @NotNull Object b) {
414
        notEqual(a, b, AssertErrorEnum.AssertNotEqual1, b);
1✔
415
    }
1✔
416
    //
417
    @Contract("null,_,_->fail")
418
    public static <T extends Comparable<T>> void eqObj(@Nullable T a, @NotNull T b, @NotNull String msg) {
419
        if (a == null || a.compareTo(b) != 0) throw new MessageException(msg);
1✔
420
    }
1✔
421

422
    @Contract("null,_,_,_->fail")
423
    public static <T extends Comparable<T>> void eqObj(@Nullable T a, @NotNull T b, @NotNull String msg, Object... args) {
424
        if (a == null || a.compareTo(b) != 0) throw new MessageException(FormatUtil.logback(msg, args));
1✔
425
    }
1✔
426

427
    @Contract("null,_,_->fail")
428
    public static <T extends Comparable<T>> void eqObj(@Nullable T a, @NotNull T b, @NotNull CodeEnum code) {
429
        if (a == null || a.compareTo(b) != 0) throw new MessageException(code);
1✔
430
    }
1✔
431

432
    @Contract("null,_,_,_->fail")
433
    public static <T extends Comparable<T>> void eqObj(@Nullable T a, @NotNull T b, @NotNull CodeEnum code, Object... args) {
434
        if (a == null || a.compareTo(b) != 0) throw new MessageException(code, args);
1✔
435
    }
1✔
436

437
    @Contract("null,_->fail")
438
    public static <T extends Comparable<T>> void eqObj(@Nullable T a, @NotNull T b) {
439
        eqObj(a, b, AssertErrorEnum.AssertEqual1, b);
1✔
440
    }
1✔
441

442
    //
443
    @Contract("null,_,_->fail")
444
    public static <T extends Comparable<T>> void neObj(@Nullable T a, @NotNull T b, @NotNull String msg) {
445
        if (a == null || a.compareTo(b) == 0) throw new MessageException(msg);
1✔
446
    }
1✔
447

448
    @Contract("null,_,_,_->fail")
449
    public static <T extends Comparable<T>> void neObj(@Nullable T a, @NotNull T b, @NotNull String msg, Object... args) {
450
        if (a == null || a.compareTo(b) == 0) throw new MessageException(FormatUtil.logback(msg, args));
1✔
451
    }
1✔
452

453
    @Contract("null,_,_->fail")
454
    public static <T extends Comparable<T>> void neObj(@Nullable T a, @NotNull T b, @NotNull CodeEnum code) {
455
        if (a == null || a.compareTo(b) == 0) throw new MessageException(code);
1✔
456
    }
1✔
457

458
    @Contract("null,_,_,_->fail")
459
    public static <T extends Comparable<T>> void neObj(@Nullable T a, @NotNull T b, @NotNull CodeEnum code, Object... args) {
460
        if (a == null || a.compareTo(b) == 0) throw new MessageException(code, args);
1✔
461
    }
1✔
462

463
    @Contract("null,_->fail")
464
    public static <T extends Comparable<T>> void neObj(@Nullable T a, @NotNull T b) {
465
        neObj(a, b, AssertErrorEnum.AssertNotEqual1, b);
1✔
466
    }
1✔
467

468
    //
469
    @Contract("null,_,_->fail")
470
    public static <T extends Comparable<T>> void geObj(@Nullable T a, @NotNull T b, @NotNull String msg) {
471
        if (a == null || a.compareTo(b) < 0) throw new MessageException(msg);
1✔
472
    }
1✔
473

474
    @Contract("null,_,_,_->fail")
475
    public static <T extends Comparable<T>> void geObj(@Nullable T a, @NotNull T b, @NotNull String msg, Object... args) {
476
        if (a == null || a.compareTo(b) < 0) throw new MessageException(FormatUtil.logback(msg, args));
1✔
477
    }
1✔
478

479
    @Contract("null,_,_->fail")
480
    public static <T extends Comparable<T>> void geObj(@Nullable T a, @NotNull T b, @NotNull CodeEnum code) {
481
        if (a == null || a.compareTo(b) < 0) throw new MessageException(code);
1✔
482
    }
1✔
483

484
    @Contract("null,_,_,_->fail")
485
    public static <T extends Comparable<T>> void geObj(@Nullable T a, @NotNull T b, @NotNull CodeEnum code, Object... args) {
486
        if (a == null || a.compareTo(b) < 0) throw new MessageException(code, args);
1✔
487
    }
1✔
488

489
    @Contract("null,_->fail")
490
    public static <T extends Comparable<T>> void geObj(@Nullable T a, @NotNull T b) {
491
        geObj(a, b, AssertErrorEnum.AssertGreaterEqual1, b);
1✔
492
    }
1✔
493

494
    //
495
    @Contract("null,_,_->fail")
496
    public static <T extends Comparable<T>> void gtObj(@Nullable T a, @NotNull T b, @NotNull String msg) {
497
        if (a == null || a.compareTo(b) <= 0) throw new MessageException(msg);
1✔
498
    }
1✔
499

500
    @Contract("null,_,_,_->fail")
501
    public static <T extends Comparable<T>> void gtObj(@Nullable T a, @NotNull T b, @NotNull String msg, Object... args) {
502
        if (a == null || a.compareTo(b) <= 0) throw new MessageException(FormatUtil.logback(msg, args));
1✔
503
    }
1✔
504

505
    @Contract("null,_,_->fail")
506
    public static <T extends Comparable<T>> void gtObj(@Nullable T a, @NotNull T b, @NotNull CodeEnum code) {
507
        if (a == null || a.compareTo(b) <= 0) throw new MessageException(code);
1✔
508
    }
1✔
509

510
    @Contract("null,_,_,_->fail")
511
    public static <T extends Comparable<T>> void gtObj(@Nullable T a, @NotNull T b, @NotNull CodeEnum code, Object... args) {
512
        if (a == null || a.compareTo(b) <= 0) throw new MessageException(code, args);
1✔
513
    }
1✔
514

515
    @Contract("null,_->fail")
516
    public static <T extends Comparable<T>> void gtObj(@Nullable T a, @NotNull T b) {
517
        gtObj(a, b, AssertErrorEnum.AssertGreater1, b);
1✔
518
    }
1✔
519

520
    //
521
    @Contract("null,_,_->fail")
522
    public static <T extends Comparable<T>> void leObj(@Nullable T a, @NotNull T b, @NotNull String msg) {
523
        if (a == null || a.compareTo(b) > 0) throw new MessageException(msg);
1✔
524
    }
1✔
525

526
    @Contract("null,_,_,_->fail")
527
    public static <T extends Comparable<T>> void leObj(@Nullable T a, @NotNull T b, @NotNull String msg, Object... args) {
528
        if (a == null || a.compareTo(b) > 0) throw new MessageException(FormatUtil.logback(msg, args));
1✔
529
    }
1✔
530

531
    @Contract("null,_,_->fail")
532
    public static <T extends Comparable<T>> void leObj(@Nullable T a, @NotNull T b, @NotNull CodeEnum code) {
533
        if (a == null || a.compareTo(b) > 0) throw new MessageException(code);
1✔
534
    }
1✔
535

536
    @Contract("null,_,_,_->fail")
537
    public static <T extends Comparable<T>> void leObj(@Nullable T a, @NotNull T b, @NotNull CodeEnum code, Object... args) {
538
        if (a == null || a.compareTo(b) > 0) throw new MessageException(code, args);
1✔
539
    }
1✔
540

541
    @Contract("null,_->fail")
542
    public static <T extends Comparable<T>> void leObj(@Nullable T a, @NotNull T b) {
543
        leObj(a, b, AssertErrorEnum.AssertLessEqual1, b);
1✔
544
    }
1✔
545

546
    //
547
    @Contract("null,_,_->fail")
548
    public static <T extends Comparable<T>> void ltObj(@Nullable T a, @NotNull T b, @NotNull String msg) {
549
        if (a == null || a.compareTo(b) >= 0) throw new MessageException(msg);
1✔
550
    }
1✔
551

552
    @Contract("null,_,_,_->fail")
553
    public static <T extends Comparable<T>> void ltObj(@Nullable T a, @NotNull T b, @NotNull String msg, Object... args) {
554
        if (a == null || a.compareTo(b) >= 0) throw new MessageException(FormatUtil.logback(msg, args));
1✔
555
    }
1✔
556

557
    @Contract("null,_,_->fail")
558
    public static <T extends Comparable<T>> void ltObj(@Nullable T a, @NotNull T b, @NotNull CodeEnum code) {
559
        if (a == null || a.compareTo(b) >= 0) throw new MessageException(code);
1✔
560
    }
1✔
561

562
    @Contract("null,_,_,_->fail")
563
    public static <T extends Comparable<T>> void ltObj(@Nullable T a, @NotNull T b, @NotNull CodeEnum code, Object... args) {
564
        if (a == null || a.compareTo(b) >= 0) throw new MessageException(code, args);
1✔
565
    }
1✔
566

567
    @Contract("null,_->fail")
568
    public static <T extends Comparable<T>> void ltObj(@Nullable T a, @NotNull T b) {
569
        ltObj(a, b, AssertErrorEnum.AssertLess1, b);
1✔
570
    }
1✔
571

572
    //
573
    public static void eqVal(int a, int b, @NotNull String msg) {
574
        if (a != b) throw new MessageException(msg);
1✔
575
    }
1✔
576

577
    public static void eqVal(int a, int b, @NotNull String msg, Object... args) {
578
        if (a != b) throw new MessageException(FormatUtil.logback(msg, args));
1✔
579
    }
1✔
580

581
    public static void eqVal(int a, int b, @NotNull CodeEnum code) {
582
        if (a != b) throw new MessageException(code);
1✔
583
    }
1✔
584

585
    public static void eqVal(int a, int b, @NotNull CodeEnum code, Object... args) {
586
        if (a != b) throw new MessageException(code, args);
1✔
587
    }
1✔
588

589
    public static void eqVal(int a, int b) {
590
        eqVal(a, b, AssertErrorEnum.AssertEqual1, b);
1✔
591
    }
1✔
592

593
    //
594
    public static void eqVal(long a, long b, @NotNull String msg) {
595
        if (a != b) throw new MessageException(msg);
1✔
596
    }
1✔
597

598
    public static void eqVal(long a, long b, @NotNull String msg, Object... args) {
599
        if (a != b) throw new MessageException(FormatUtil.logback(msg, args));
1✔
600
    }
1✔
601

602
    public static void eqVal(long a, long b, @NotNull CodeEnum code) {
603
        if (a != b) throw new MessageException(code);
1✔
604
    }
1✔
605

606
    public static void eqVal(long a, long b, @NotNull CodeEnum code, Object... args) {
607
        if (a != b) throw new MessageException(code, args);
1✔
608
    }
1✔
609

610
    public static void eqVal(long a, long b) {
611
        eqVal(a, b, AssertErrorEnum.AssertEqual1, b);
1✔
612
    }
1✔
613

614
    //
615
    @Contract("null,_,_->fail")
616
    public static void eqVal(int[] as, int b, @NotNull String msg) {
617
        isTrue(PredictVal.eq(as, b), msg);
1✔
618
    }
1✔
619

620
    @Contract("null,_,_,_->fail")
621
    public static void eqVal(int[] as, int b, @NotNull String msg, Object... args) {
622
        isTrue(PredictVal.eq(as, b), msg, args);
1✔
623
    }
1✔
624

625
    @Contract("null,_,_->fail")
626
    public static void eqVal(int[] as, int b, @NotNull CodeEnum code) {
627
        isTrue(PredictVal.eq(as, b), code);
1✔
628
    }
1✔
629

630
    @Contract("null,_,_,_->fail")
631
    public static void eqVal(int[] as, int b, @NotNull CodeEnum code, Object... args) {
632
        isTrue(PredictVal.eq(as, b), code, args);
1✔
633
    }
1✔
634

635
    @Contract("null,_->fail")
636
    public static void eqVal(int[] as, int b) {
637
        eqVal(as, b, AssertErrorEnum.AssertEqual1, b);
1✔
638
    }
1✔
639

640
    //
641
    @Contract("null,_,_->fail")
642
    public static void eqVal(long[] as, long b, @NotNull String msg) {
643
        isTrue(PredictVal.eq(as, b), msg);
1✔
644
    }
1✔
645

646
    @Contract("null,_,_,_->fail")
647
    public static void eqVal(long[] as, long b, @NotNull String msg, Object... args) {
648
        isTrue(PredictVal.eq(as, b), msg, args);
1✔
649
    }
1✔
650

651
    @Contract("null,_,_->fail")
652
    public static void eqVal(long[] as, long b, @NotNull CodeEnum code) {
653
        isTrue(PredictVal.eq(as, b), code);
1✔
654
    }
1✔
655

656
    @Contract("null,_,_,_->fail")
657
    public static void eqVal(long[] as, long b, @NotNull CodeEnum code, Object... args) {
658
        isTrue(PredictVal.eq(as, b), code, args);
1✔
659
    }
1✔
660

661
    @Contract("null,_->fail")
662
    public static void eqVal(long[] as, long b) {
663
        eqVal(as, b, AssertErrorEnum.AssertEqual1, b);
1✔
664
    }
1✔
665

666
    //
667
    public static void neVal(int a, int b, @NotNull String msg) {
668
        if (a == b) throw new MessageException(msg);
1✔
669
    }
1✔
670

671
    public static void neVal(int a, int b, @NotNull String msg, Object... args) {
672
        if (a == b) throw new MessageException(FormatUtil.logback(msg, args));
1✔
673
    }
1✔
674

675
    public static void neVal(int a, int b, @NotNull CodeEnum code) {
676
        if (a == b) throw new MessageException(code);
1✔
677
    }
1✔
678

679
    public static void neVal(int a, int b, @NotNull CodeEnum code, Object... args) {
680
        if (a == b) throw new MessageException(code, args);
1✔
681
    }
1✔
682

683
    public static void neVal(int a, int b) {
684
        neVal(a, b, AssertErrorEnum.AssertNotEqual1, b);
1✔
685
    }
1✔
686

687
    //
688
    public static void neVal(long a, long b, @NotNull String msg) {
689
        if (a == b) throw new MessageException(msg);
1✔
690
    }
1✔
691

692
    public static void neVal(long a, long b, @NotNull String msg, Object... args) {
693
        if (a == b) throw new MessageException(FormatUtil.logback(msg, args));
1✔
694
    }
1✔
695

696
    public static void neVal(long a, long b, @NotNull CodeEnum code) {
697
        if (a == b) throw new MessageException(code);
1✔
698
    }
1✔
699

700
    public static void neVal(long a, long b, @NotNull CodeEnum code, Object... args) {
701
        if (a == b) throw new MessageException(code, args);
1✔
702
    }
1✔
703

704
    public static void neVal(long a, long b) {
705
        neVal(a, b, AssertErrorEnum.AssertNotEqual1, b);
1✔
706
    }
1✔
707

708
    //
709
    @Contract("null,_,_->fail")
710
    public static void neVal(int[] as, int b, @NotNull String msg) {
711
        isTrue(PredictVal.ne(as, b), msg);
1✔
712
    }
1✔
713

714
    @Contract("null,_,_,_->fail")
715
    public static void neVal(int[] as, int b, @NotNull String msg, Object... args) {
716
        isTrue(PredictVal.ne(as, b), msg, args);
1✔
717
    }
1✔
718

719
    @Contract("null,_,_->fail")
720
    public static void neVal(int[] as, int b, @NotNull CodeEnum code) {
NEW
721
        isTrue(PredictVal.ne(as, b), code);
×
NEW
722
    }
×
723

724
    @Contract("null,_,_,_->fail")
725
    public static void neVal(int[] as, int b, @NotNull CodeEnum code, Object... args) {
NEW
726
        isTrue(PredictVal.ne(as, b), code, args);
×
NEW
727
    }
×
728

729
    @Contract("null,_->fail")
730
    public static void neVal(int[] as, int b) {
NEW
731
        neVal(as, b, AssertErrorEnum.AssertNotEqual1, b);
×
NEW
732
    }
×
733

734
    //
735
    @Contract("null,_,_->fail")
736
    public static void neVal(long[] as, long b, @NotNull String msg) {
737
        isTrue(PredictVal.ne(as, b), msg);
1✔
738
    }
1✔
739

740
    @Contract("null,_,_,_->fail")
741
    public static void neVal(long[] as, long b, @NotNull String msg, Object... args) {
742
        isTrue(PredictVal.ne(as, b), msg, args);
1✔
743
    }
1✔
744

745
    @Contract("null,_,_->fail")
746
    public static void neVal(long[] as, long b, @NotNull CodeEnum code) {
747
        isTrue(PredictVal.ne(as, b), code);
1✔
748
    }
1✔
749

750
    @Contract("null,_,_,_->fail")
751
    public static void neVal(long[] as, long b, @NotNull CodeEnum code, Object... args) {
752
        isTrue(PredictVal.ne(as, b), code, args);
1✔
753
    }
1✔
754

755
    @Contract("null,_->fail")
756
    public static void neVal(long[] as, long b) {
757
        neVal(as, b, AssertErrorEnum.AssertNotEqual1, b);
1✔
758
    }
1✔
759

760
    //
761
    public static void geVal(int a, int b, @NotNull String msg) {
762
        if (a < b) throw new MessageException(msg);
1✔
763
    }
1✔
764

765
    public static void geVal(int a, int b, @NotNull String msg, Object... args) {
766
        if (a < b) throw new MessageException(FormatUtil.logback(msg, args));
1✔
767
    }
1✔
768

769
    public static void geVal(int a, int b, @NotNull CodeEnum code) {
770
        if (a < b) throw new MessageException(code);
1✔
771
    }
1✔
772

773
    public static void geVal(int a, int b, @NotNull CodeEnum code, Object... args) {
774
        if (a < b) throw new MessageException(code, args);
1✔
775
    }
1✔
776

777
    public static void geVal(int a, int b) {
778
        geVal(a, b, AssertErrorEnum.AssertGreaterEqual1, b);
1✔
779
    }
1✔
780

781
    //
782
    public static void geVal(long a, long b, @NotNull String msg) {
783
        if (a < b) throw new MessageException(msg);
1✔
784
    }
1✔
785

786
    public static void geVal(long a, long b, @NotNull String msg, Object... args) {
787
        if (a < b) throw new MessageException(FormatUtil.logback(msg, args));
1✔
788
    }
1✔
789

790
    public static void geVal(long a, long b, @NotNull CodeEnum code) {
791
        if (a < b) throw new MessageException(code);
1✔
792
    }
1✔
793

794
    public static void geVal(long a, long b, @NotNull CodeEnum code, Object... args) {
795
        if (a < b) throw new MessageException(code, args);
1✔
796
    }
1✔
797

798
    public static void geVal(long a, long b) {
799
        geVal(a, b, AssertErrorEnum.AssertGreaterEqual1, b);
1✔
800
    }
1✔
801

802
    //
803
    @Contract("null,_,_->fail")
804
    public static void geVal(int[] as, int b, @NotNull String msg) {
805
        isTrue(PredictVal.ge(as, b), msg);
1✔
806
    }
1✔
807

808
    @Contract("null,_,_,_->fail")
809
    public static void geVal(int[] as, int b, @NotNull String msg, Object... args) {
810
        isTrue(PredictVal.ge(as, b), msg, args);
1✔
811
    }
1✔
812

813
    @Contract("null,_,_->fail")
814
    public static void geVal(int[] as, int b, @NotNull CodeEnum code) {
NEW
815
        isTrue(PredictVal.ge(as, b), code);
×
NEW
816
    }
×
817

818
    @Contract("null,_,_,_->fail")
819
    public static void geVal(int[] as, int b, @NotNull CodeEnum code, Object... args) {
NEW
820
        isTrue(PredictVal.ge(as, b), code, args);
×
NEW
821
    }
×
822

823
    @Contract("null,_->fail")
824
    public static void geVal(int[] as, int b) {
NEW
825
        geVal(as, b, AssertErrorEnum.AssertGreaterEqual1, b);
×
NEW
826
    }
×
827

828
    //
829
    @Contract("null,_,_->fail")
830
    public static void geVal(long[] as, long b, @NotNull String msg) {
831
        isTrue(PredictVal.ge(as, b), msg);
1✔
832
    }
1✔
833

834
    @Contract("null,_,_,_->fail")
835
    public static void geVal(long[] as, long b, @NotNull String msg, Object... args) {
836
        isTrue(PredictVal.ge(as, b), msg, args);
1✔
837
    }
1✔
838

839
    @Contract("null,_,_->fail")
840
    public static void geVal(long[] as, long b, @NotNull CodeEnum code) {
841
        isTrue(PredictVal.ge(as, b), code);
1✔
842
    }
1✔
843

844
    @Contract("null,_,_,_->fail")
845
    public static void geVal(long[] as, long b, @NotNull CodeEnum code, Object... args) {
846
        isTrue(PredictVal.ge(as, b), code, args);
1✔
847
    }
1✔
848

849
    @Contract("null,_->fail")
850
    public static void geVal(long[] as, long b) {
851
        geVal(as, b, AssertErrorEnum.AssertGreaterEqual1, b);
1✔
852
    }
1✔
853

854

855
    //
856
    public static void gtVal(int a, int b, @NotNull String msg) {
857
        if (a <= b) throw new MessageException(msg);
1✔
858
    }
1✔
859

860
    public static void gtVal(int a, int b, @NotNull String msg, Object... args) {
861
        if (a <= b) throw new MessageException(FormatUtil.logback(msg, args));
1✔
862
    }
1✔
863

864
    public static void gtVal(int a, int b, @NotNull CodeEnum code) {
865
        if (a <= b) throw new MessageException(code);
1✔
866
    }
1✔
867

868
    public static void gtVal(int a, int b, @NotNull CodeEnum code, Object... args) {
869
        if (a <= b) throw new MessageException(code, args);
1✔
870
    }
1✔
871

872
    public static void gtVal(int a, int b) {
873
        gtVal(a, b, AssertErrorEnum.AssertGreater1, b);
1✔
874
    }
1✔
875

876
    //
877
    public static void gtVal(long a, long b, @NotNull String msg) {
878
        if (a <= b) throw new MessageException(msg);
1✔
879
    }
1✔
880

881
    public static void gtVal(long a, long b, @NotNull String msg, Object... args) {
882
        if (a <= b) throw new MessageException(FormatUtil.logback(msg, args));
1✔
883
    }
1✔
884

885
    public static void gtVal(long a, long b, @NotNull CodeEnum code) {
886
        if (a <= b) throw new MessageException(code);
1✔
887
    }
1✔
888

889
    public static void gtVal(long a, long b, @NotNull CodeEnum code, Object... args) {
890
        if (a <= b) throw new MessageException(code, args);
1✔
891
    }
1✔
892

893
    public static void gtVal(long a, long b) {
894
        gtVal(a, b, AssertErrorEnum.AssertGreater1, b);
1✔
895
    }
1✔
896

897
    //
898
    @Contract("null,_,_->fail")
899
    public static void gtVal(int[] as, int b, @NotNull String msg) {
900
        isTrue(PredictVal.gt(as, b), msg);
1✔
901
    }
1✔
902

903
    @Contract("null,_,_,_->fail")
904
    public static void gtVal(int[] as, int b, @NotNull String msg, Object... args) {
905
        isTrue(PredictVal.gt(as, b), msg, args);
1✔
906
    }
1✔
907

908
    @Contract("null,_,_->fail")
909
    public static void gtVal(int[] as, int b, @NotNull CodeEnum code) {
NEW
910
        isTrue(PredictVal.gt(as, b), code);
×
NEW
911
    }
×
912

913
    @Contract("null,_,_,_->fail")
914
    public static void gtVal(int[] as, int b, @NotNull CodeEnum code, Object... args) {
NEW
915
        isTrue(PredictVal.gt(as, b), code, args);
×
NEW
916
    }
×
917

918
    @Contract("null,_->fail")
919
    public static void gtVal(int[] as, int b) {
NEW
920
        gtVal(as, b, AssertErrorEnum.AssertGreater1, b);
×
NEW
921
    }
×
922

923
    //
924
    @Contract("null,_,_->fail")
925
    public static void gtVal(long[] as, long b, @NotNull String msg) {
926
        isTrue(PredictVal.gt(as, b), msg);
1✔
927
    }
1✔
928

929
    @Contract("null,_,_,_->fail")
930
    public static void gtVal(long[] as, long b, @NotNull String msg, Object... args) {
931
        isTrue(PredictVal.gt(as, b), msg, args);
1✔
932
    }
1✔
933

934
    @Contract("null,_,_->fail")
935
    public static void gtVal(long[] as, long b, @NotNull CodeEnum code) {
936
        isTrue(PredictVal.gt(as, b), code);
1✔
937
    }
1✔
938

939
    @Contract("null,_,_,_->fail")
940
    public static void gtVal(long[] as, long b, @NotNull CodeEnum code, Object... args) {
941
        isTrue(PredictVal.gt(as, b), code, args);
1✔
942
    }
1✔
943

944
    @Contract("null,_->fail")
945
    public static void gtVal(long[] as, long b) {
946
        gtVal(as, b, AssertErrorEnum.AssertGreater1, b);
1✔
947
    }
1✔
948

949
    //
950
    public static void leVal(int a, int b, @NotNull String msg) {
951
        if (a > b) throw new MessageException(msg);
1✔
952
    }
1✔
953

954
    public static void leVal(int a, int b, @NotNull String msg, Object... args) {
955
        if (a > b) throw new MessageException(FormatUtil.logback(msg, args));
1✔
956
    }
1✔
957

958
    public static void leVal(int a, int b, @NotNull CodeEnum code) {
959
        if (a > b) throw new MessageException(code);
1✔
960
    }
1✔
961

962
    public static void leVal(int a, int b, @NotNull CodeEnum code, Object... args) {
963
        if (a > b) throw new MessageException(code, args);
1✔
964
    }
1✔
965

966
    public static void leVal(int a, int b) {
967
        leVal(a, b, AssertErrorEnum.AssertLessEqual1, b);
1✔
968
    }
1✔
969

970
    //
971
    public static void leVal(long a, long b, @NotNull String msg) {
972
        if (a > b) throw new MessageException(msg);
1✔
973
    }
1✔
974

975
    public static void leVal(long a, long b, @NotNull String msg, Object... args) {
976
        if (a > b) throw new MessageException(FormatUtil.logback(msg, args));
1✔
977
    }
1✔
978

979
    public static void leVal(long a, long b, @NotNull CodeEnum code) {
980
        if (a > b) throw new MessageException(code);
1✔
981
    }
1✔
982

983
    public static void leVal(long a, long b, @NotNull CodeEnum code, Object... args) {
984
        if (a > b) throw new MessageException(code, args);
1✔
985
    }
1✔
986

987
    public static void leVal(long a, long b) {
988
        leVal(a, b, AssertErrorEnum.AssertLessEqual1, b);
1✔
989
    }
1✔
990

991
    //
992
    @Contract("null,_,_->fail")
993
    public static void leVal(int[] as, int b, @NotNull String msg) {
994
        isTrue(PredictVal.le(as, b), msg);
1✔
995
    }
1✔
996

997
    @Contract("null,_,_,_->fail")
998
    public static void leVal(int[] as, int b, @NotNull String msg, Object... args) {
999
        isTrue(PredictVal.le(as, b), msg, args);
1✔
1000
    }
1✔
1001

1002
    @Contract("null,_,_->fail")
1003
    public static void leVal(int[] as, int b, @NotNull CodeEnum code) {
1004
        isTrue(PredictVal.le(as, b), code);
1✔
1005
    }
1✔
1006

1007
    @Contract("null,_,_,_->fail")
1008
    public static void leVal(int[] as, int b, @NotNull CodeEnum code, Object... args) {
1009
        isTrue(PredictVal.le(as, b), code, args);
1✔
1010
    }
1✔
1011

1012
    @Contract("null,_->fail")
1013
    public static void leVal(int[] as, int b) {
1014
        leVal(as, b, AssertErrorEnum.AssertLessEqual1, b);
1✔
1015
    }
1✔
1016

1017
    //
1018
    @Contract("null,_,_->fail")
1019
    public static void leVal(long[] as, long b, @NotNull String msg) {
1020
        isTrue(PredictVal.le(as, b), msg);
1✔
1021
    }
1✔
1022

1023
    @Contract("null,_,_,_->fail")
1024
    public static void leVal(long[] as, long b, @NotNull String msg, Object... args) {
1025
        isTrue(PredictVal.le(as, b), msg, args);
1✔
1026
    }
1✔
1027

1028
    @Contract("null,_,_->fail")
1029
    public static void leVal(long[] as, long b, @NotNull CodeEnum code) {
1030
        isTrue(PredictVal.le(as, b), code);
1✔
1031
    }
1✔
1032

1033
    @Contract("null,_,_,_->fail")
1034
    public static void leVal(long[] as, long b, @NotNull CodeEnum code, Object... args) {
1035
        isTrue(PredictVal.le(as, b), code, args);
1✔
1036
    }
1✔
1037

1038
    @Contract("null,_->fail")
1039
    public static void leVal(long[] as, long b) {
1040
        leVal(as, b, AssertErrorEnum.AssertLessEqual1, b);
1✔
1041
    }
1✔
1042

1043
    //
1044
    public static void ltVal(int a, int b, @NotNull String msg) {
1045
        if (a >= b) throw new MessageException(msg);
1✔
1046
    }
1✔
1047

1048
    public static void ltVal(int a, int b, @NotNull String msg, Object... args) {
1049
        if (a >= b) throw new MessageException(FormatUtil.logback(msg, args));
1✔
1050
    }
1✔
1051

1052
    public static void ltVal(int a, int b, @NotNull CodeEnum code) {
1053
        if (a >= b) throw new MessageException(code);
1✔
1054
    }
1✔
1055

1056
    public static void ltVal(int a, int b, @NotNull CodeEnum code, Object... args) {
1057
        if (a >= b) throw new MessageException(code, args);
1✔
1058
    }
1✔
1059

1060
    public static void ltVal(int a, int b) {
1061
        ltVal(a, b, AssertErrorEnum.AssertLess1, b);
1✔
1062
    }
1✔
1063

1064
    //
1065
    public static void ltVal(long a, long b, @NotNull String msg) {
1066
        if (a >= b) throw new MessageException(msg);
1✔
1067
    }
1✔
1068

1069
    public static void ltVal(long a, long b, @NotNull String msg, Object... args) {
1070
        if (a >= b) throw new MessageException(FormatUtil.logback(msg, args));
1✔
1071
    }
1✔
1072

1073
    public static void ltVal(long a, long b, @NotNull CodeEnum code) {
1074
        if (a >= b) throw new MessageException(code);
1✔
1075
    }
1✔
1076

1077
    public static void ltVal(long a, long b, @NotNull CodeEnum code, Object... args) {
1078
        if (a >= b) throw new MessageException(code, args);
1✔
1079
    }
1✔
1080

1081
    public static void ltVal(long a, long b) {
1082
        ltVal(a, b, AssertErrorEnum.AssertLess1, b);
1✔
1083
    }
1✔
1084

1085
    //
1086
    @Contract("null,_,_->fail")
1087
    public static void ltVal(int[] as, int b, @NotNull String msg) {
1088
        isTrue(PredictVal.lt(as, b), msg);
1✔
1089
    }
1✔
1090

1091
    @Contract("null,_,_,_->fail")
1092
    public static void ltVal(int[] as, int b, @NotNull String msg, Object... args) {
1093
        isTrue(PredictVal.lt(as, b), msg, args);
1✔
1094
    }
1✔
1095

1096
    @Contract("null,_,_->fail")
1097
    public static void ltVal(int[] as, int b, @NotNull CodeEnum code) {
NEW
1098
        isTrue(PredictVal.lt(as, b), code);
×
NEW
1099
    }
×
1100

1101
    @Contract("null,_,_,_->fail")
1102
    public static void ltVal(int[] as, int b, @NotNull CodeEnum code, Object... args) {
NEW
1103
        isTrue(PredictVal.lt(as, b), code, args);
×
NEW
1104
    }
×
1105

1106
    @Contract("null,_->fail")
1107
    public static void ltVal(int[] as, int b) {
NEW
1108
        ltVal(as, b, AssertErrorEnum.AssertLess1, b);
×
NEW
1109
    }
×
1110

1111
    //
1112
    @Contract("null,_,_->fail")
1113
    public static void ltVal(long[] as, long b, @NotNull String msg) {
1114
        isTrue(PredictVal.lt(as, b), msg);
1✔
1115
    }
1✔
1116

1117
    @Contract("null,_,_,_->fail")
1118
    public static void ltVal(long[] as, long b, @NotNull String msg, Object... args) {
1119
        isTrue(PredictVal.lt(as, b), msg, args);
1✔
1120
    }
1✔
1121

1122
    @Contract("null,_,_->fail")
1123
    public static void ltVal(long[] as, long b, @NotNull CodeEnum code) {
1124
        isTrue(PredictVal.lt(as, b), code);
1✔
1125
    }
1✔
1126

1127
    @Contract("null,_,_,_->fail")
1128
    public static void ltVal(long[] as, long b, @NotNull CodeEnum code, Object... args) {
1129
        isTrue(PredictVal.lt(as, b), code, args);
1✔
1130
    }
1✔
1131

1132
    @Contract("null,_->fail")
1133
    public static void ltVal(long[] as, long b) {
1134
        ltVal(as, b, AssertErrorEnum.AssertLess1, b);
1✔
1135
    }
1✔
1136
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc