From 75836e44ba610211c28ae2ebd2bcafd9cef7d419 Mon Sep 17 00:00:00 2001 From: Alasdair Mercer Date: Mon, 14 Nov 2016 22:38:01 +0000 Subject: [PATCH 1/2] fixed JavaDoc errors --- .../io/skelp/verifier/CustomVerifier.java | 140 +++---- .../verifier/type/CharacterVerifier.java | 188 ++++----- .../io/skelp/verifier/type/ClassVerifier.java | 110 +++--- .../skelp/verifier/type/LocaleVerifier.java | 50 +-- .../io/skelp/verifier/type/MapVerifier.java | 44 +-- .../skelp/verifier/type/StringVerifier.java | 366 +++++++++--------- .../verifier/type/ThrowableVerifier.java | 70 ++-- .../type/base/BaseCollectionVerifier.java | 90 ++--- .../type/base/BaseComparableVerifier.java | 160 ++++---- .../type/base/BaseNumberVerifier.java | 54 +-- .../base/BaseSortableCollectionVerifier.java | 28 +- .../verifier/type/base/BaseTimeVerifier.java | 88 ++--- .../verifier/type/base/BaseTruthVerifier.java | 12 +- 13 files changed, 700 insertions(+), 700 deletions(-) diff --git a/src/main/java/io/skelp/verifier/CustomVerifier.java b/src/main/java/io/skelp/verifier/CustomVerifier.java index 934a25d..da96034 100644 --- a/src/main/java/io/skelp/verifier/CustomVerifier.java +++ b/src/main/java/io/skelp/verifier/CustomVerifier.java @@ -45,12 +45,12 @@ public interface CustomVerifier> { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(null).equalTo(null)   => PASS
-     * Verifier.verify(null).equalTo("abc")  => FAIL
-     * Verifier.verify("abc").equalTo(null)  => FAIL
-     * Verifier.verify("abc").equalTo("abc") => PASS
-     * Verifier.verify("abc").equalTo("ABC") => FAIL
-     * Verifier.verify("abc").equalTo("def") => FAIL
+     * Verifier.verify(null).equalTo(null)   => PASS
+     * Verifier.verify(null).equalTo("abc")  => FAIL
+     * Verifier.verify("abc").equalTo(null)  => FAIL
+     * Verifier.verify("abc").equalTo("abc") => PASS
+     * Verifier.verify("abc").equalTo("ABC") => FAIL
+     * Verifier.verify("abc").equalTo("def") => FAIL
      * 
* * @param other @@ -76,12 +76,12 @@ public interface CustomVerifier> { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(null, *).equalTo(null)   => PASS
-     * Verifier.verify(null, *).equalTo("abc")  => FAIL
-     * Verifier.verify("abc", *).equalTo(null)  => FAIL
-     * Verifier.verify("abc", *).equalTo("abc") => PASS
-     * Verifier.verify("abc", *).equalTo("ABC") => FAIL
-     * Verifier.verify("abc", *).equalTo("def") => FAIL
+     * Verifier.verify(null, *).equalTo(null)   => PASS
+     * Verifier.verify(null, *).equalTo("abc")  => FAIL
+     * Verifier.verify("abc", *).equalTo(null)  => FAIL
+     * Verifier.verify("abc", *).equalTo("abc") => PASS
+     * Verifier.verify("abc", *).equalTo("ABC") => FAIL
+     * Verifier.verify("abc", *).equalTo("def") => FAIL
      * 
* * @param other @@ -104,13 +104,13 @@ public interface CustomVerifier> { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).equalToAny()                         => FAIL
-     * Verifier.verify(*).equalToAny((Object[]) null)          => FAIL
-     * Verifier.verify(null).equalToAny("ghi", "def", null)    => PASS
-     * Verifier.verify(null).equalToAny("ghi", "def", "abc")   => FAIL
-     * Verifier.verify("abc").equalToAny("ghi", "def", null)   => FAIL
-     * Verifier.verify("abc").equalToAny("ghi", "def", "abc")  => PASS
-     * Verifier.verify("abc").equalToAny("GHI", "DEF", "ABC")  => FAIL
+     * Verifier.verify(*).equalToAny()                         => FAIL
+     * Verifier.verify(*).equalToAny((Object[]) null)          => FAIL
+     * Verifier.verify(null).equalToAny("ghi", "def", null)    => PASS
+     * Verifier.verify(null).equalToAny("ghi", "def", "abc")   => FAIL
+     * Verifier.verify("abc").equalToAny("ghi", "def", null)   => FAIL
+     * Verifier.verify("abc").equalToAny("ghi", "def", "abc")  => PASS
+     * Verifier.verify("abc").equalToAny("GHI", "DEF", "ABC")  => FAIL
      * 
* * @param others @@ -130,11 +130,11 @@ public interface CustomVerifier> { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(null).hashedAs(*)   => FAIL
-     * Verifier.verify(123).hashedAs(0)    => FAIL
-     * Verifier.verify(123).hashedAs(321)  => FAIL
-     * Verifier.verify(123).hashedAs(123)  => PASS
-     * Verifier.verify(123).hashedAs(-123) => FAIL
+     * Verifier.verify(null).hashedAs(*)   => FAIL
+     * Verifier.verify(123).hashedAs(0)    => FAIL
+     * Verifier.verify(123).hashedAs(321)  => FAIL
+     * Verifier.verify(123).hashedAs(123)  => PASS
+     * Verifier.verify(123).hashedAs(-123) => FAIL
      * 
* * @param hashCode @@ -154,11 +154,11 @@ public interface CustomVerifier> { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).instanceOf(null)                           => FAIL
-     * Verifier.verify(*).instanceOf(Object.class)                   => PASS
-     * Verifier.verify(null).instanceOf(*)                           => FAIL
-     * Verifier.verify(new ArrayList()).instanceOf(Collection.class) => PASS
-     * Verifier.verify(new ArrayList()).instanceOf(Map.class)        => FAIL
+     * Verifier.verify(*).instanceOf(null)                           => FAIL
+     * Verifier.verify(*).instanceOf(Object.class)                   => PASS
+     * Verifier.verify(null).instanceOf(*)                           => FAIL
+     * Verifier.verify(new ArrayList()).instanceOf(Collection.class) => PASS
+     * Verifier.verify(new ArrayList()).instanceOf(Map.class)        => FAIL
      * 
* * @param cls @@ -178,13 +178,13 @@ public interface CustomVerifier> { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).instanceOfAll()                                                            => PASS
-     * Verifier.verify(*).instanceOfAll((Object[]) null)                                             => PASS
-     * Verifier.verify(*).instanceOfAll(Object.class)                                                => PASS
-     * Verifier.verify(*).instanceOfAll(*, null)                                                     => FAIL
-     * Verifier.verify(null).instanceOfAll(*)                                                        => FAIL
-     * Verifier.verify(new ArrayList()).instanceOfAll(ArrayList.class, List.class, Collection.class) => PASS
-     * Verifier.verify(new ArrayList()).instanceOfAll(ArrayList.class, Map.class, Collection.class)  => FAIL
+     * Verifier.verify(*).instanceOfAll()                                                            => PASS
+     * Verifier.verify(*).instanceOfAll((Object[]) null)                                             => PASS
+     * Verifier.verify(*).instanceOfAll(Object.class)                                                => PASS
+     * Verifier.verify(*).instanceOfAll(*, null)                                                     => FAIL
+     * Verifier.verify(null).instanceOfAll(*)                                                        => FAIL
+     * Verifier.verify(new ArrayList()).instanceOfAll(ArrayList.class, List.class, Collection.class) => PASS
+     * Verifier.verify(new ArrayList()).instanceOfAll(ArrayList.class, Map.class, Collection.class)  => FAIL
      * 
* * @param classes @@ -205,12 +205,12 @@ public interface CustomVerifier> { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).instanceOfAny()                                                         => FAIL
-     * Verifier.verify(*).instanceOfAny((Object[]) null)                                          => FAIL
-     * Verifier.verify(*).instanceOfAny(*, Object.class)                                          => PASS
-     * Verifier.verify(null).instanceOfAny(*)                                                     => FAIL
-     * Verifier.verify(new ArrayList()).instanceOfAny(Boolean.class, Map.class, Collection.class) => PASS
-     * Verifier.verify(new ArrayList()).instanceOfAny(Boolean.class, Map.class, URI.class)        => FAIL
+     * Verifier.verify(*).instanceOfAny()                                                         => FAIL
+     * Verifier.verify(*).instanceOfAny((Object[]) null)                                          => FAIL
+     * Verifier.verify(*).instanceOfAny(*, Object.class)                                          => PASS
+     * Verifier.verify(null).instanceOfAny(*)                                                     => FAIL
+     * Verifier.verify(new ArrayList()).instanceOfAny(Boolean.class, Map.class, Collection.class) => PASS
+     * Verifier.verify(new ArrayList()).instanceOfAny(Boolean.class, Map.class, URI.class)        => FAIL
      * 
* * @param classes @@ -232,10 +232,10 @@ public interface CustomVerifier> { * itself. *

*
-     * Verifier.verify(null).not().nulled()               => FAIL
-     * Verifier.verify(new Object()).not().nulled()       => PASS
-     * Verifier.verify(null).not().not().nulled()         => PASS
-     * Verifier.verify(new Object()).not().not().nulled() => FAIL
+     * Verifier.verify(null).not().nulled()               => FAIL
+     * Verifier.verify(new Object()).not().nulled()       => PASS
+     * Verifier.verify(null).not().not().nulled()         => PASS
+     * Verifier.verify(new Object()).not().not().nulled() => FAIL
      * 
* * @return A reference to this {@link CustomVerifier} for chaining purposes. @@ -247,8 +247,8 @@ public interface CustomVerifier> { * Verifies that the value {@literal null}. *

*
-     * Verifier.verify(null).nulled()         => PASS
-     * Verifier.verify(new Object()).nulled() => FAIL
+     * Verifier.verify(null).nulled()         => PASS
+     * Verifier.verify(new Object()).nulled() => FAIL
      * 
* * @return A reference to this {@link CustomVerifier} for chaining purposes. @@ -265,11 +265,11 @@ public interface CustomVerifier> { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(null).sameAs(null)            => PASS
-     * Verifier.verify(null).sameAs(123)             => FAIL
-     * Verifier.verify(123).sameAs(null)             => FAIL
-     * Verifier.verify(123).sameAs(123)              => PASS
-     * Verifier.verify(213).sameAs(new Integer(123)) => FAIL
+     * Verifier.verify(null).sameAs(null)            => PASS
+     * Verifier.verify(null).sameAs(123)             => FAIL
+     * Verifier.verify(123).sameAs(null)             => FAIL
+     * Verifier.verify(123).sameAs(123)              => PASS
+     * Verifier.verify(213).sameAs(new Integer(123)) => FAIL
      * 
* * @param other @@ -294,11 +294,11 @@ public interface CustomVerifier> { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(null, *).sameAs(null)            => PASS
-     * Verifier.verify(null, *).sameAs(123)             => FAIL
-     * Verifier.verify(123, *).sameAs(null)             => FAIL
-     * Verifier.verify(123, *).sameAs(123)              => PASS
-     * Verifier.verify(213, *).sameAs(new Integer(123)) => FAIL
+     * Verifier.verify(null, *).sameAs(null)            => PASS
+     * Verifier.verify(null, *).sameAs(123)             => FAIL
+     * Verifier.verify(123, *).sameAs(null)             => FAIL
+     * Verifier.verify(123, *).sameAs(123)              => PASS
+     * Verifier.verify(213, *).sameAs(new Integer(123)) => FAIL
      * 
* * @param other @@ -320,13 +320,13 @@ public interface CustomVerifier> { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).sameAsAny()                                                       => FAIL
-     * Verifier.verify(*).sameAsAny((Object[]) null)                                        => FAIL
-     * Verifier.verify(null).sameAsAny(789, 456, null)                                      => PASS
-     * Verifier.verify(null).sameAsAny(789, 456, 123)                                       => FAIL
-     * Verifier.verify(123).sameAsAny(789, 456, null)                                       => FAIL
-     * Verifier.verify(123).sameAsAny(789, 456, 123)                                        => PASS
-     * Verifier.verify(123).sameAsAny(new Integer(789), new Integer(456), new Integer(123)) => FAIL
+     * Verifier.verify(*).sameAsAny()                                                       => FAIL
+     * Verifier.verify(*).sameAsAny((Object[]) null)                                        => FAIL
+     * Verifier.verify(null).sameAsAny(789, 456, null)                                      => PASS
+     * Verifier.verify(null).sameAsAny(789, 456, 123)                                       => FAIL
+     * Verifier.verify(123).sameAsAny(789, 456, null)                                       => FAIL
+     * Verifier.verify(123).sameAsAny(789, 456, 123)                                        => PASS
+     * Verifier.verify(123).sameAsAny(new Integer(789), new Integer(456), new Integer(123)) => FAIL
      * 
* * @param others @@ -342,11 +342,11 @@ public interface CustomVerifier> { * Verifies that the value passes the {@code assertion} provided. *

*
-     * Verifier.verify(*).that(null)                                                  => FAIL
-     * Verifier.verify(*).not().that(null)                                            => FAIL
-     * Verifier.verify(null).that(value -> "Mork".equals(value))                      => FAIL
-     * Verifier.verify(new User("Mork")).that(user -> "Mork".equals(user.getName()))  => PASS
-     * Verifier.verify(new User("Mindy")).that(user -> "Mork".equals(user.getName())) => FAIL
+     * Verifier.verify(*).that(null)                                                     => FAIL
+     * Verifier.verify(*).not().that(null)                                               => FAIL
+     * Verifier.verify(null).that(value -> "Mork".equals(value))                      => FAIL
+     * Verifier.verify(new User("Mork")).that(user -> "Mork".equals(user.getName()))  => PASS
+     * Verifier.verify(new User("Mindy")).that(user -> "Mork".equals(user.getName())) => FAIL
      * 
* * @param assertion diff --git a/src/main/java/io/skelp/verifier/type/CharacterVerifier.java b/src/main/java/io/skelp/verifier/type/CharacterVerifier.java index 4d9c6ec..35cb40e 100644 --- a/src/main/java/io/skelp/verifier/type/CharacterVerifier.java +++ b/src/main/java/io/skelp/verifier/type/CharacterVerifier.java @@ -73,12 +73,12 @@ public CharacterVerifier(final Verification verification) { * Verifies that the value is a letter. *

*
-     * Verifier.verify((Character) null).alpha() => FAIL
-     * Verifier.verify('\0').alpha()             => FAIL
-     * Verifier.verify('0').alpha()              => FAIL
-     * Verifier.verify('Z').alpha()              => PASS
-     * Verifier.verify('१').alpha()              => FAIL
-     * Verifier.verify('É').alpha()              => PASS
+     * Verifier.verify((Character) null).alpha() => FAIL
+     * Verifier.verify('\0').alpha()             => FAIL
+     * Verifier.verify('0').alpha()              => FAIL
+     * Verifier.verify('Z').alpha()              => PASS
+     * Verifier.verify('१').alpha()              => FAIL
+     * Verifier.verify('É').alpha()              => PASS
      * 
* * @return A reference to this {@link CharacterVerifier} for chaining purposes. @@ -100,12 +100,12 @@ public CharacterVerifier alpha() throws VerifierException { * Verifies that the value is a letter or digit. *

*
-     * Verifier.verify((Character) null).alphanumeric() => FAIL
-     * Verifier.verify('\0').alphanumeric()             => FAIL
-     * Verifier.verify('0').alphanumeric()              => PASS
-     * Verifier.verify('Z').alphanumeric()              => PASS
-     * Verifier.verify('१').alphanumeric()              => PASS
-     * Verifier.verify('É').alphanumeric()              => PASS
+     * Verifier.verify((Character) null).alphanumeric() => FAIL
+     * Verifier.verify('\0').alphanumeric()             => FAIL
+     * Verifier.verify('0').alphanumeric()              => PASS
+     * Verifier.verify('Z').alphanumeric()              => PASS
+     * Verifier.verify('१').alphanumeric()              => PASS
+     * Verifier.verify('É').alphanumeric()              => PASS
      * 
* * @return A reference to this {@link CharacterVerifier} for chaining purposes. @@ -127,12 +127,12 @@ public CharacterVerifier alphanumeric() throws VerifierException { * Verifies that the value is ASCII. *

*
-     * Verifier.verify((Character) null).ascii() => FAIL
-     * Verifier.verify('\0').ascii()             => PASS
-     * Verifier.verify('0').ascii()              => PASS
-     * Verifier.verify('Z').ascii()              => PASS
-     * Verifier.verify('१').ascii()              => FAIL
-     * Verifier.verify('É').ascii()              => FAIL
+     * Verifier.verify((Character) null).ascii() => FAIL
+     * Verifier.verify('\0').ascii()             => PASS
+     * Verifier.verify('0').ascii()              => PASS
+     * Verifier.verify('Z').ascii()              => PASS
+     * Verifier.verify('१').ascii()              => FAIL
+     * Verifier.verify('É').ascii()              => FAIL
      * 
* * @return A reference to this {@link CharacterVerifier} for chaining purposes. @@ -153,12 +153,12 @@ public CharacterVerifier ascii() throws VerifierException { * Verifies that the value is an ASCII letter. *

*
-     * Verifier.verify((Character) null).asciiAlpha() => FAIL
-     * Verifier.verify('\0').asciiAlpha()             => FAIL
-     * Verifier.verify('0').asciiAlpha()              => FAIL
-     * Verifier.verify('Z').asciiAlpha()              => PASS
-     * Verifier.verify('१').asciiAlpha()              => FAIL
-     * Verifier.verify('É').asciiAlpha()              => FAIL
+     * Verifier.verify((Character) null).asciiAlpha() => FAIL
+     * Verifier.verify('\0').asciiAlpha()             => FAIL
+     * Verifier.verify('0').asciiAlpha()              => FAIL
+     * Verifier.verify('Z').asciiAlpha()              => PASS
+     * Verifier.verify('१').asciiAlpha()              => FAIL
+     * Verifier.verify('É').asciiAlpha()              => FAIL
      * 
* * @return A reference to this {@link CharacterVerifier} for chaining purposes. @@ -180,13 +180,13 @@ public CharacterVerifier asciiAlpha() throws VerifierException { * Verifies that the value is an ASCII lower case letter. *

*
-     * Verifier.verify((Character) null).asciiAlphaLowerCase() => FAIL
-     * Verifier.verify('\0').asciiAlphaLowerCase()             => FAIL
-     * Verifier.verify('0').asciiAlphaLowerCase()              => FAIL
-     * Verifier.verify('a').asciiAlphaLowerCase()              => PASS
-     * Verifier.verify('Z').asciiAlphaLowerCase()              => FAIL
-     * Verifier.verify('१').asciiAlphaLowerCase()              => FAIL
-     * Verifier.verify('é').asciiAlphaLowerCase()              => FAIL
+     * Verifier.verify((Character) null).asciiAlphaLowerCase() => FAIL
+     * Verifier.verify('\0').asciiAlphaLowerCase()             => FAIL
+     * Verifier.verify('0').asciiAlphaLowerCase()              => FAIL
+     * Verifier.verify('a').asciiAlphaLowerCase()              => PASS
+     * Verifier.verify('Z').asciiAlphaLowerCase()              => FAIL
+     * Verifier.verify('१').asciiAlphaLowerCase()              => FAIL
+     * Verifier.verify('é').asciiAlphaLowerCase()              => FAIL
      * 
* * @return A reference to this {@link CharacterVerifier} for chaining purposes. @@ -209,13 +209,13 @@ public CharacterVerifier asciiAlphaLowerCase() throws VerifierException { * Verifies that the value is an ASCII upper case letter. *

*
-     * Verifier.verify((Character) null).asciiAlphaUpperCase() => FAIL
-     * Verifier.verify('\0').asciiAlphaUpperCase()             => FAIL
-     * Verifier.verify('0').asciiAlphaUpperCase()              => FAIL
-     * Verifier.verify('a').asciiAlphaUpperCase()              => FAIL
-     * Verifier.verify('Z').asciiAlphaUpperCase()              => PASS
-     * Verifier.verify('१').asciiAlphaUpperCase()              => FAIL
-     * Verifier.verify('É').asciiAlphaUpperCase()              => FAIL
+     * Verifier.verify((Character) null).asciiAlphaUpperCase() => FAIL
+     * Verifier.verify('\0').asciiAlphaUpperCase()             => FAIL
+     * Verifier.verify('0').asciiAlphaUpperCase()              => FAIL
+     * Verifier.verify('a').asciiAlphaUpperCase()              => FAIL
+     * Verifier.verify('Z').asciiAlphaUpperCase()              => PASS
+     * Verifier.verify('१').asciiAlphaUpperCase()              => FAIL
+     * Verifier.verify('É').asciiAlphaUpperCase()              => FAIL
      * 
* * @return A reference to this {@link CharacterVerifier} for chaining purposes. @@ -238,12 +238,12 @@ public CharacterVerifier asciiAlphaUpperCase() throws VerifierException { * Verifies that the value is an ASCII letter or digit. *

*
-     * Verifier.verify((Character) null).asciiAlphanumeric() => FAIL
-     * Verifier.verify('\0').asciiAlphanumeric()             => FAIL
-     * Verifier.verify('0').asciiAlphanumeric()              => PASS
-     * Verifier.verify('Z').asciiAlphanumeric()              => PASS
-     * Verifier.verify('१').asciiAlphanumeric()              => FAIL
-     * Verifier.verify('É').asciiAlphanumeric()              => FAIL
+     * Verifier.verify((Character) null).asciiAlphanumeric() => FAIL
+     * Verifier.verify('\0').asciiAlphanumeric()             => FAIL
+     * Verifier.verify('0').asciiAlphanumeric()              => PASS
+     * Verifier.verify('Z').asciiAlphanumeric()              => PASS
+     * Verifier.verify('१').asciiAlphanumeric()              => FAIL
+     * Verifier.verify('É').asciiAlphanumeric()              => FAIL
      * 
* * @return A reference to this {@link CharacterVerifier} for chaining purposes. @@ -265,12 +265,12 @@ public CharacterVerifier asciiAlphanumeric() throws VerifierException { * Verifies that the value is an ASCII control. *

*
-     * Verifier.verify((Character) null).asciiControl() => FAIL
-     * Verifier.verify('\0').asciiControl()             => PASS
-     * Verifier.verify('0').asciiControl()              => FAIL
-     * Verifier.verify('Z').asciiControl()              => FAIL
-     * Verifier.verify('१').asciiControl()              => FAIL
-     * Verifier.verify('É').asciiControl()              => FAIL
+     * Verifier.verify((Character) null).asciiControl() => FAIL
+     * Verifier.verify('\0').asciiControl()             => PASS
+     * Verifier.verify('0').asciiControl()              => FAIL
+     * Verifier.verify('Z').asciiControl()              => FAIL
+     * Verifier.verify('१').asciiControl()              => FAIL
+     * Verifier.verify('É').asciiControl()              => FAIL
      * 
* * @return A reference to this {@link CharacterVerifier} for chaining purposes. @@ -291,12 +291,12 @@ public CharacterVerifier asciiControl() throws VerifierException { * Verifies that the value is an ASCII digit. *

*
-     * Verifier.verify((Character) null).asciiNumeric() => FAIL
-     * Verifier.verify('\0').asciiNumeric()             => FAIL
-     * Verifier.verify('0').asciiNumeric()              => PASS
-     * Verifier.verify('Z').asciiNumeric()              => FAIL
-     * Verifier.verify('१').asciiNumeric()              => FAIL
-     * Verifier.verify('É').asciiNumeric()              => FAIL
+     * Verifier.verify((Character) null).asciiNumeric() => FAIL
+     * Verifier.verify('\0').asciiNumeric()             => FAIL
+     * Verifier.verify('0').asciiNumeric()              => PASS
+     * Verifier.verify('Z').asciiNumeric()              => FAIL
+     * Verifier.verify('१').asciiNumeric()              => FAIL
+     * Verifier.verify('É').asciiNumeric()              => FAIL
      * 
* * @return A reference to this {@link CharacterVerifier} for chaining purposes. @@ -318,14 +318,14 @@ public CharacterVerifier asciiNumeric() throws VerifierException { * Verifies that the value is ASCII printable. *

*
-     * Verifier.verify((Character) null).asciiPrintable() => FAIL
-     * Verifier.verify('\0').asciiPrintable()             => FAIL
-     * Verifier.verify('0').asciiPrintable()              => PASS
-     * Verifier.verify('Z').asciiPrintable()              => PASS
-     * Verifier.verify(' ').asciiPrintable()              => PASS
-     * Verifier.verify('~').asciiPrintable()              => PASS
-     * Verifier.verify('१').asciiPrintable()              => FAIL
-     * Verifier.verify('É').asciiPrintable()              => FAIL
+     * Verifier.verify((Character) null).asciiPrintable() => FAIL
+     * Verifier.verify('\0').asciiPrintable()             => FAIL
+     * Verifier.verify('0').asciiPrintable()              => PASS
+     * Verifier.verify('Z').asciiPrintable()              => PASS
+     * Verifier.verify(' ').asciiPrintable()              => PASS
+     * Verifier.verify('~').asciiPrintable()              => PASS
+     * Verifier.verify('१').asciiPrintable()              => FAIL
+     * Verifier.verify('É').asciiPrintable()              => FAIL
      * 
* * @return A reference to this {@link CharacterVerifier} for chaining purposes. @@ -356,14 +356,14 @@ public CharacterVerifier falsy() throws VerifierException { * Verifies that the value is a lower case letter. *

*
-     * Verifier.verify((Character) null).lowerCase() => FAIL
-     * Verifier.verify('\0').lowerCase()             => FAIL
-     * Verifier.verify('0').lowerCase()              => FAIL
-     * Verifier.verify('a').lowerCase()              => PASS
-     * Verifier.verify('Z').lowerCase()              => FAIL
-     * Verifier.verify('१').lowerCase()              => FAIL
-     * Verifier.verify('é').lowerCase()              => PASS
-     * Verifier.verify('É').lowerCase()              => FAIL
+     * Verifier.verify((Character) null).lowerCase() => FAIL
+     * Verifier.verify('\0').lowerCase()             => FAIL
+     * Verifier.verify('0').lowerCase()              => FAIL
+     * Verifier.verify('a').lowerCase()              => PASS
+     * Verifier.verify('Z').lowerCase()              => FAIL
+     * Verifier.verify('१').lowerCase()              => FAIL
+     * Verifier.verify('é').lowerCase()              => PASS
+     * Verifier.verify('É').lowerCase()              => FAIL
      * 
* * @return A reference to this {@link CharacterVerifier} for chaining purposes. @@ -386,12 +386,12 @@ public CharacterVerifier lowerCase() throws VerifierException { * Verifies that the value is a digit. *

*
-     * Verifier.verify((Character) null).numeric() => FAIL
-     * Verifier.verify('\0').numeric()             => FAIL
-     * Verifier.verify('0').numeric()              => PASS
-     * Verifier.verify('Z').numeric()              => FAIL
-     * Verifier.verify('१').numeric()              => PASS
-     * Verifier.verify('É').numeric()              => FAIL
+     * Verifier.verify((Character) null).numeric() => FAIL
+     * Verifier.verify('\0').numeric()             => FAIL
+     * Verifier.verify('0').numeric()              => PASS
+     * Verifier.verify('Z').numeric()              => FAIL
+     * Verifier.verify('१').numeric()              => PASS
+     * Verifier.verify('É').numeric()              => FAIL
      * 
* * @return A reference to this {@link CharacterVerifier} for chaining purposes. @@ -423,14 +423,14 @@ public CharacterVerifier truthy() throws VerifierException { * Verifies that the value is an upper case letter. *

*
-     * Verifier.verify((Character) null).upperCase() => FAIL
-     * Verifier.verify('\0').upperCase()             => FAIL
-     * Verifier.verify('0').upperCase()              => FAIL
-     * Verifier.verify('a').upperCase()              => FAIL
-     * Verifier.verify('Z').upperCase()              => PASS
-     * Verifier.verify('१').upperCase()              => FAIL
-     * Verifier.verify('é').upperCase()              => FAIL
-     * Verifier.verify('É').upperCase()              => PASS
+     * Verifier.verify((Character) null).upperCase() => FAIL
+     * Verifier.verify('\0').upperCase()             => FAIL
+     * Verifier.verify('0').upperCase()              => FAIL
+     * Verifier.verify('a').upperCase()              => FAIL
+     * Verifier.verify('Z').upperCase()              => PASS
+     * Verifier.verify('१').upperCase()              => FAIL
+     * Verifier.verify('é').upperCase()              => FAIL
+     * Verifier.verify('É').upperCase()              => PASS
      * 
* * @return A reference to this {@link CharacterVerifier} for chaining purposes. @@ -453,14 +453,14 @@ public CharacterVerifier upperCase() throws VerifierException { * Verifies that the value is whitespace. *

*
-     * Verifier.verify((Character) null).whitespace() => FAIL
-     * Verifier.verify('\0').whitespace()             => FAIL
-     * Verifier.verify('0').whitespace()              => FAIL
-     * Verifier.verify('Z').whitespace()              => FAIL
-     * Verifier.verify(' ').whitespace()              => PASS
-     * Verifier.verify('\r').whitespace()             => PASS
-     * Verifier.verify('\n').whitespace()             => PASS
-     * Verifier.verify('\t').whitespace()             => PASS
+     * Verifier.verify((Character) null).whitespace() => FAIL
+     * Verifier.verify('\0').whitespace()             => FAIL
+     * Verifier.verify('0').whitespace()              => FAIL
+     * Verifier.verify('Z').whitespace()              => FAIL
+     * Verifier.verify(' ').whitespace()              => PASS
+     * Verifier.verify('\r').whitespace()             => PASS
+     * Verifier.verify('\n').whitespace()             => PASS
+     * Verifier.verify('\t').whitespace()             => PASS
      * 
* * @return A reference to this {@link CharacterVerifier} for chaining purposes. diff --git a/src/main/java/io/skelp/verifier/type/ClassVerifier.java b/src/main/java/io/skelp/verifier/type/ClassVerifier.java index 0c01135..46d8e31 100644 --- a/src/main/java/io/skelp/verifier/type/ClassVerifier.java +++ b/src/main/java/io/skelp/verifier/type/ClassVerifier.java @@ -66,9 +66,9 @@ public ClassVerifier(final Verification verification) { * Verifies that the value has at least one annotation of any type. *

*
-     * Verifier.verify((Class) null).annotated()               => FAIL
-     * Verifier.verify(MyAnnotatedObject.class).annotated()    => PASS
-     * Verifier.verify(MyNonAnnotatedObject.class).annotated() => FAIL
+     * Verifier.verify((Class) null).annotated()               => FAIL
+     * Verifier.verify(MyAnnotatedObject.class).annotated()    => PASS
+     * Verifier.verify(MyNonAnnotatedObject.class).annotated() => FAIL
      * 
* * @return A reference to this {@link ClassVerifier} for chaining purposes. @@ -92,11 +92,11 @@ public ClassVerifier annotated() throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).annotatedWith(null)                          => FAIL
-     * Verifier.verify((Class) null).annotatedWith(*)                  => FAIL
-     * Verifier.verify(Object.class).annotatedWith(*)                  => FAIL
-     * Verifier.verify(Override.class).annotatedWith(Documented.class) => FAIL
-     * Verifier.verify(Override.class).annotatedWith(Retention.class)  => PASS
+     * Verifier.verify(*).annotatedWith(null)                          => FAIL
+     * Verifier.verify((Class) null).annotatedWith(*)                  => FAIL
+     * Verifier.verify(Object.class).annotatedWith(*)                  => FAIL
+     * Verifier.verify(Override.class).annotatedWith(Documented.class) => FAIL
+     * Verifier.verify(Override.class).annotatedWith(Retention.class)  => PASS
      * 
* * @param type @@ -122,13 +122,13 @@ public ClassVerifier annotatedWith(final Class type) throw * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).annotatedWithAll()                                               => PASS
-     * Verifier.verify(*).annotatedWithAll((Class[]) null)                                 => FAIL
-     * Verifier.verify(*).annotatedWithAll(*, null)                                        => FAIL
-     * Verifier.verify((Class) null).annotatedWithAll(*)                                   => FAIL
-     * Verifier.verify(Object.class).annotatedWithAll(*)                                   => FAIL
-     * Verifier.verify(Override.class).annotatedWithAll(Retention.class, Documented.class) => FAIL
-     * Verifier.verify(Override.class).annotatedWithAll(Retention.class, Target.class)     => PASS
+     * Verifier.verify(*).annotatedWithAll()                                               => PASS
+     * Verifier.verify(*).annotatedWithAll((Class[]) null)                                 => FAIL
+     * Verifier.verify(*).annotatedWithAll(*, null)                                        => FAIL
+     * Verifier.verify((Class) null).annotatedWithAll(*)                                   => FAIL
+     * Verifier.verify(Object.class).annotatedWithAll(*)                                   => FAIL
+     * Verifier.verify(Override.class).annotatedWithAll(Retention.class, Documented.class) => FAIL
+     * Verifier.verify(Override.class).annotatedWithAll(Retention.class, Target.class)     => PASS
      * 
* * @param types @@ -159,12 +159,12 @@ public Boolean apply(Class input) { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).annotatedWithAny()                                               => FAIL
-     * Verifier.verify(*).annotatedWithAny((Class[]) null)                                 => FAIL
-     * Verifier.verify((Class) null).annotatedWithAny(*)                                   => FAIL
-     * Verifier.verify(Object.class).annotatedWithAny(*)                                   => FAIL
-     * Verifier.verify(Override.class).annotatedWithAny(Retention.class, Documented.class) => PASS
-     * Verifier.verify(Override.class).annotatedWithAny(Retention.class, Target.class)     => PASS
+     * Verifier.verify(*).annotatedWithAny()                                               => FAIL
+     * Verifier.verify(*).annotatedWithAny((Class[]) null)                                 => FAIL
+     * Verifier.verify((Class) null).annotatedWithAny(*)                                   => FAIL
+     * Verifier.verify(Object.class).annotatedWithAny(*)                                   => FAIL
+     * Verifier.verify(Override.class).annotatedWithAny(Retention.class, Documented.class) => PASS
+     * Verifier.verify(Override.class).annotatedWithAny(Retention.class, Target.class)     => PASS
      * 
* * @param types @@ -192,9 +192,9 @@ public Boolean apply(Class input) { * Verifies that the value is an annotation. *

*
-     * Verifier.verify((Class) null).annotation()   => FAIL
-     * Verifier.verify(Override.class).annotation() => PASS
-     * Verifier.verify(Verifier.class).annotation() => FAIL
+     * Verifier.verify((Class) null).annotation()   => FAIL
+     * Verifier.verify(Override.class).annotation() => PASS
+     * Verifier.verify(Verifier.class).annotation() => FAIL
      * 
* * @return A reference to this {@link ClassVerifier} for chaining purposes. @@ -215,9 +215,9 @@ public ClassVerifier annotation() throws VerifierException { * Verifies that the value is an anonymous type. *

*
-     * Verifier.verify((Class) null).anonymous()                    => FAIL
-     * Verifier.verify(Object.class).anonymous()                    => FAIL
-     * Verifier.verify(new Serializable(){}.getClass()).anonymous() => PASS
+     * Verifier.verify((Class) null).anonymous()                    => FAIL
+     * Verifier.verify(Object.class).anonymous()                    => FAIL
+     * Verifier.verify(new Serializable(){}.getClass()).anonymous() => PASS
      * 
* * @return A reference to this {@link ClassVerifier} for chaining purposes. @@ -238,9 +238,9 @@ public ClassVerifier anonymous() throws VerifierException { * Verifies that the value is an array. *

*
-     * Verifier.verify((Class) null).array()   => FAIL
-     * Verifier.verify(Object.class).array()   => FAIL
-     * Verifier.verify(Object[].class).array() => PASS
+     * Verifier.verify((Class) null).array()   => FAIL
+     * Verifier.verify(Object.class).array()   => FAIL
+     * Verifier.verify(Object[].class).array() => PASS
      * 
* * @return A reference to this {@link ClassVerifier} for chaining purposes. @@ -265,10 +265,10 @@ public ClassVerifier array() throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).assignableFrom(null)                      => FAIL
-     * Verifier.verify((Class) null).assignableFrom(*)              => FAIL
-     * Verifier.verify(Object.class).assignableFrom(Verifier.class) => PASS
-     * Verifier.verify(Verifier.class).assignableFrom(Object.class) => FAIL
+     * Verifier.verify(*).assignableFrom(null)                      => FAIL
+     * Verifier.verify((Class) null).assignableFrom(*)              => FAIL
+     * Verifier.verify(Object.class).assignableFrom(Verifier.class) => PASS
+     * Verifier.verify(Verifier.class).assignableFrom(Object.class) => FAIL
      * 
* * @param type @@ -291,9 +291,9 @@ public ClassVerifier assignableFrom(final Class type) throws VerifierExceptio * Verifies that the value is an enum. *

*
-     * Verifier.verify((Class) null).enumeration()    => FAIL
-     * Verifier.verify(Object.class).enumeration()    => FAIL
-     * Verifier.verify(DayOfWeek.class).enumeration() => PASS
+     * Verifier.verify((Class) null).enumeration()    => FAIL
+     * Verifier.verify(Object.class).enumeration()    => FAIL
+     * Verifier.verify(DayOfWeek.class).enumeration() => PASS
      * 
* * @return A reference to this {@link ClassVerifier} for chaining purposes. @@ -314,9 +314,9 @@ public ClassVerifier enumeration() throws VerifierException { * Verifies that the value is an interface. *

*
-     * Verifier.verify((Class) null).interfacing()       => FAIL
-     * Verifier.verify(Object.class).interfacing()       => FAIL
-     * Verifier.verify(Serializable.class).interfacing() => PASS
+     * Verifier.verify((Class) null).interfacing()       => FAIL
+     * Verifier.verify(Object.class).interfacing()       => FAIL
+     * Verifier.verify(Serializable.class).interfacing() => PASS
      * 
* * @return A reference to this {@link ClassVerifier} for chaining purposes. @@ -337,9 +337,9 @@ public ClassVerifier interfacing() throws VerifierException { * Verifies that the value is nested. *

*
-     * Verifier.verify((Class) null).nested()           => FAIL
-     * Verifier.verify(Calendar.class).nested()         => FAIL
-     * Verifier.verify(Calendar.Builder.class).nested() => PASS
+     * Verifier.verify((Class) null).nested()           => FAIL
+     * Verifier.verify(Calendar.class).nested()         => FAIL
+     * Verifier.verify(Calendar.Builder.class).nested() => PASS
      * 
* * @return A reference to this {@link ClassVerifier} for chaining purposes. @@ -360,10 +360,10 @@ public ClassVerifier nested() throws VerifierException { * Verifies that the value is a primitive. *

*
-     * Verifier.verify((Class) null).primitive()  => FAIL
-     * Verifier.verify(Object.class).primitive()  => FAIL
-     * Verifier.verify(Boolean.class).primitive() => FAIL
-     * Verifier.verify(Boolean.TYPE).primitive()  => PASS
+     * Verifier.verify((Class) null).primitive()  => FAIL
+     * Verifier.verify(Object.class).primitive()  => FAIL
+     * Verifier.verify(Boolean.class).primitive() => FAIL
+     * Verifier.verify(Boolean.TYPE).primitive()  => PASS
      * 
* * @return A reference to this {@link ClassVerifier} for chaining purposes. @@ -384,10 +384,10 @@ public ClassVerifier primitive() throws VerifierException { * Verifies that the value is a primitive or primitive wrapper. *

*
-     * Verifier.verify((Class) null).primitiveOrWrapper()  => FAIL
-     * Verifier.verify(Object.class).primitiveOrWrapper()  => FAIL
-     * Verifier.verify(Boolean.class).primitiveOrWrapper() => PASS
-     * Verifier.verify(Boolean.TYPE).primitiveOrWrapper()  => PASS
+     * Verifier.verify((Class) null).primitiveOrWrapper()  => FAIL
+     * Verifier.verify(Object.class).primitiveOrWrapper()  => FAIL
+     * Verifier.verify(Boolean.class).primitiveOrWrapper() => PASS
+     * Verifier.verify(Boolean.TYPE).primitiveOrWrapper()  => PASS
      * 
* * @return A reference to this {@link ClassVerifier} for chaining purposes. @@ -408,10 +408,10 @@ public ClassVerifier primitiveOrWrapper() throws VerifierException { * Verifies that the value is a primitive wrapper. *

*
-     * Verifier.verify((Class) null).primitiveWrapper()  => FAIL
-     * Verifier.verify(Object.class).primitiveWrapper()  => FAIL
-     * Verifier.verify(Boolean.class).primitiveWrapper() => PASS
-     * Verifier.verify(Boolean.TYPE).primitiveWrapper()  => FAIL
+     * Verifier.verify((Class) null).primitiveWrapper()  => FAIL
+     * Verifier.verify(Object.class).primitiveWrapper()  => FAIL
+     * Verifier.verify(Boolean.class).primitiveWrapper() => PASS
+     * Verifier.verify(Boolean.TYPE).primitiveWrapper()  => FAIL
      * 
* * @return A reference to this {@link ClassVerifier} for chaining purposes. diff --git a/src/main/java/io/skelp/verifier/type/LocaleVerifier.java b/src/main/java/io/skelp/verifier/type/LocaleVerifier.java index 9621202..d65a60d 100644 --- a/src/main/java/io/skelp/verifier/type/LocaleVerifier.java +++ b/src/main/java/io/skelp/verifier/type/LocaleVerifier.java @@ -58,9 +58,9 @@ public LocaleVerifier(final Verification verification) { * Verifies that the value is an available {@code Locale}. *

*
-     * Verifier.verify((Locale) null).available()            => FAIL
-     * Verifier.verify(Locale.US).available()                => PASS
-     * Verifier.verify(new Locale("foo", "BAR")).available() => FAIL
+     * Verifier.verify((Locale) null).available()            => FAIL
+     * Verifier.verify(Locale.US).available()                => PASS
+     * Verifier.verify(new Locale("foo", "BAR")).available() => FAIL
      * 
* * @return A reference to this {@link LocaleVerifier} for chaining purposes. @@ -84,11 +84,11 @@ public LocaleVerifier available() throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).country(null)                      => FAIL
-     * Verifier.verify((Locale) null).country(*)             => FAIL
-     * Verifier.verify(new Locale("en", "")).country("")     => PASS
-     * Verifier.verify(new Locale("en", "US")).country("GB") => FAIL
-     * Verifier.verify(new Locale("en", "US")).country("US") => PASS
+     * Verifier.verify(*).country(null)                      => FAIL
+     * Verifier.verify((Locale) null).country(*)             => FAIL
+     * Verifier.verify(new Locale("en", "")).country("")     => PASS
+     * Verifier.verify(new Locale("en", "US")).country("GB") => FAIL
+     * Verifier.verify(new Locale("en", "US")).country("US") => PASS
      * 
* * @param country @@ -111,9 +111,9 @@ public LocaleVerifier country(final String country) throws VerifierException { * Verifies that the value is the default {@code Locale}. *

*
-     * Verifier.verify((Locale) null).defaulting()            => FAIL
-     * Verifier.verify(Locale.getDefault()).defaulting()      => PASS
-     * Verifier.verify(new Locale("foo", "BAR")).defaulting() => FAIL
+     * Verifier.verify((Locale) null).defaulting()            => FAIL
+     * Verifier.verify(Locale.getDefault()).defaulting()      => PASS
+     * Verifier.verify(new Locale("foo", "BAR")).defaulting() => FAIL
      * 
* * @return A reference to this {@link LocaleVerifier} for chaining purposes. @@ -137,10 +137,10 @@ public LocaleVerifier defaulting() throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).language(null)                      => FAIL
-     * Verifier.verify((Locale) null).language(*)             => FAIL
-     * Verifier.verify(new Locale("en", "US")).language("fr") => FAIL
-     * Verifier.verify(new Locale("en", "US")).language("en") => PASS
+     * Verifier.verify(*).language(null)                      => FAIL
+     * Verifier.verify((Locale) null).language(*)             => FAIL
+     * Verifier.verify(new Locale("en", "US")).language("fr") => FAIL
+     * Verifier.verify(new Locale("en", "US")).language("en") => PASS
      * 
* * @param language @@ -166,11 +166,11 @@ public LocaleVerifier language(final String language) throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).script(null)                    => FAIL
-     * Verifier.verify((Locale) null).script(*)           => FAIL
-     * Verifier.verify(new Locale("en", "US")).script("") => PASS
-     * Verifier.verify(latinLocale).script("Arab")        => FAIL
-     * Verifier.verify(latinLocale).script("Latn")        => PASS
+     * Verifier.verify(*).script(null)                    => FAIL
+     * Verifier.verify((Locale) null).script(*)           => FAIL
+     * Verifier.verify(new Locale("en", "US")).script("") => PASS
+     * Verifier.verify(latinLocale).script("Arab")        => FAIL
+     * Verifier.verify(latinLocale).script("Latn")        => PASS
      * 
* * @param script @@ -196,11 +196,11 @@ public LocaleVerifier script(final String script) throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).variant(null)                                        => FAIL
-     * Verifier.verify((Locale) null).variant(*)                               => FAIL
-     * Verifier.verify(new Locale("en", "GB")).variant("")                     => PASS
-     * Verifier.verify(new Locale("en", "GB", "scotland")).variant("scouse")   => FAIL
-     * Verifier.verify(new Locale("en", "GB", "scotland")).variant("scotland") => PASS
+     * Verifier.verify(*).variant(null)                                        => FAIL
+     * Verifier.verify((Locale) null).variant(*)                               => FAIL
+     * Verifier.verify(new Locale("en", "GB")).variant("")                     => PASS
+     * Verifier.verify(new Locale("en", "GB", "scotland")).variant("scouse")   => FAIL
+     * Verifier.verify(new Locale("en", "GB", "scotland")).variant("scotland") => PASS
      * 
* * @param variant diff --git a/src/main/java/io/skelp/verifier/type/MapVerifier.java b/src/main/java/io/skelp/verifier/type/MapVerifier.java index 79aa8f3..49b7f11 100644 --- a/src/main/java/io/skelp/verifier/type/MapVerifier.java +++ b/src/main/java/io/skelp/verifier/type/MapVerifier.java @@ -63,14 +63,14 @@ public MapVerifier(final Verification> verification) { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((Map) null).containAllKeys(*)                                                       => FAIL
-     * Verifier.verify(map(new Object[0][])).containAllKeys(*)                                             => FAIL
-     * Verifier.verify(map(new Object[][]{*})).containAllKeys((Object[]) null)                             => PASS
-     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {"c", 789}})).containAllKeys("d", "e")   => FAIL
-     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {"c", 789}})).containAllKeys("a", "d")   => FAIL
-     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {"c", 789}})).containAllKeys("c", "b")   => PASS
-     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {"c", 789}})).containAllKeys("c", null)  => FAIL
-     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {null, 789}})).containAllKeys("a", null) => PASS
+     * Verifier.verify((Map) null).containAllKeys(*)                                                       => FAIL
+     * Verifier.verify(map(new Object[0][])).containAllKeys(*)                                             => FAIL
+     * Verifier.verify(map(new Object[][]{*})).containAllKeys((Object[]) null)                             => PASS
+     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {"c", 789}})).containAllKeys("d", "e")   => FAIL
+     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {"c", 789}})).containAllKeys("a", "d")   => FAIL
+     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {"c", 789}})).containAllKeys("c", "b")   => PASS
+     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {"c", 789}})).containAllKeys("c", null)  => FAIL
+     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {null, 789}})).containAllKeys("a", null) => PASS
      * 
* * @param keys @@ -101,14 +101,14 @@ public Boolean apply(final K input) { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((Map) null).containAnyKey(*)                                                       => FAIL
-     * Verifier.verify(map(new Object[0][])).containAnyKey(*)                                             => FAIL
-     * Verifier.verify(map(new Object[][]{*})).containAnyKey((Object[]) null)                             => FAIL
-     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {"c", 789}})).containAnyKey("d", "e")   => FAIL
-     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {"c", 789}})).containAnyKey("a", "d")   => PASS
-     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {"c", 789}})).containAnyKey("c", "b")   => PASS
-     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {"c", 789}})).containAnyKey("c", null)  => PASS
-     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {null, 789}})).containAnyKey("d", null) => PASS
+     * Verifier.verify((Map) null).containAnyKey(*)                                                       => FAIL
+     * Verifier.verify(map(new Object[0][])).containAnyKey(*)                                             => FAIL
+     * Verifier.verify(map(new Object[][]{*})).containAnyKey((Object[]) null)                             => FAIL
+     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {"c", 789}})).containAnyKey("d", "e")   => FAIL
+     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {"c", 789}})).containAnyKey("a", "d")   => PASS
+     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {"c", 789}})).containAnyKey("c", "b")   => PASS
+     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {"c", 789}})).containAnyKey("c", null)  => PASS
+     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {null, 789}})).containAnyKey("d", null) => PASS
      * 
* * @param keys @@ -139,12 +139,12 @@ public Boolean apply(final K input) { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((Map) null).containKey(*)                                                  => FAIL
-     * Verifier.verify(map(new Object[0][])).containKey(*)                                        => FAIL
-     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {"c", 789}})).containKey("c")   => PASS
-     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {"c", 789}})).containKey("d")   => FAIL
-     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {"c", 789}})).containKey(null)  => FAIL
-     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {null, 789}})).containKey(null) => PASS
+     * Verifier.verify((Map) null).containKey(*)                                                  => FAIL
+     * Verifier.verify(map(new Object[0][])).containKey(*)                                        => FAIL
+     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {"c", 789}})).containKey("c")   => PASS
+     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {"c", 789}})).containKey("d")   => FAIL
+     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {"c", 789}})).containKey(null)  => FAIL
+     * Verifier.verify(map(new Object[][]{{"a", 123}, {"b", 456}, {null, 789}})).containKey(null) => PASS
      * 
* * @param key diff --git a/src/main/java/io/skelp/verifier/type/StringVerifier.java b/src/main/java/io/skelp/verifier/type/StringVerifier.java index a2968a3..c9922c1 100644 --- a/src/main/java/io/skelp/verifier/type/StringVerifier.java +++ b/src/main/java/io/skelp/verifier/type/StringVerifier.java @@ -137,12 +137,12 @@ public StringVerifier(final Verification verification) { * Verifies that the value contains only letters. *

*
-     * Verifier.verify((String) null).alpha() => FAIL
-     * Verifier.verify("\0\r\n").alpha()      => FAIL
-     * Verifier.verify("123").alpha()         => FAIL
-     * Verifier.verify("abc").alpha()         => PASS
-     * Verifier.verify("abc123").alpha()      => FAIL
-     * Verifier.verify("a b c").alpha()       => FAIL
+     * Verifier.verify((String) null).alpha() => FAIL
+     * Verifier.verify("\0\r\n").alpha()      => FAIL
+     * Verifier.verify("123").alpha()         => FAIL
+     * Verifier.verify("abc").alpha()         => PASS
+     * Verifier.verify("abc123").alpha()      => FAIL
+     * Verifier.verify("a b c").alpha()       => FAIL
      * 
* * @return A reference to this {@link StringVerifier} for chaining purposes. @@ -169,11 +169,11 @@ public Boolean apply(final Character character) { * Verifies that the value contains only letters or space. *

*
-     * Verifier.verify((String) null).alphaSpace() => FAIL
-     * Verifier.verify("\0 \r \n").alphaSpace()    => FAIL
-     * Verifier.verify("1 2 3").alphaSpace()       => FAIL
-     * Verifier.verify("a b c").alphaSpace()       => PASS
-     * Verifier.verify("a b c 1 2 3").alphaSpace() => FAIL
+     * Verifier.verify((String) null).alphaSpace() => FAIL
+     * Verifier.verify("\0 \r \n").alphaSpace()    => FAIL
+     * Verifier.verify("1 2 3").alphaSpace()       => FAIL
+     * Verifier.verify("a b c").alphaSpace()       => PASS
+     * Verifier.verify("a b c 1 2 3").alphaSpace() => FAIL
      * 
* * @return A reference to this {@link StringVerifier} for chaining purposes. @@ -200,12 +200,12 @@ public Boolean apply(final Character character) { * Verifies that the value contains only letters or digits. *

*
-     * Verifier.verify((String) null).alphanumeric() => FAIL
-     * Verifier.verify("\0\r\n").alphanumeric()      => FAIL
-     * Verifier.verify("123").alphanumeric()         => PASS
-     * Verifier.verify("abc").alphanumeric()         => PASS
-     * Verifier.verify("abc123").alphanumeric()      => PASS
-     * Verifier.verify("a b c 1 2 3").alphanumeric() => FAIL
+     * Verifier.verify((String) null).alphanumeric() => FAIL
+     * Verifier.verify("\0\r\n").alphanumeric()      => FAIL
+     * Verifier.verify("123").alphanumeric()         => PASS
+     * Verifier.verify("abc").alphanumeric()         => PASS
+     * Verifier.verify("abc123").alphanumeric()      => PASS
+     * Verifier.verify("a b c 1 2 3").alphanumeric() => FAIL
      * 
* * @return A reference to this {@link StringVerifier} for chaining purposes. @@ -232,11 +232,11 @@ public Boolean apply(final Character character) { * Verifies that the value contains only letters or digits or space. *

*
-     * Verifier.verify((String) null).alphanumericSpace() => FAIL
-     * Verifier.verify("\0 \r \n").alphanumericSpace()    => FAIL
-     * Verifier.verify("1 2 3").alphanumericSpace()       => PASS
-     * Verifier.verify("a b c").alphanumericSpace()       => PASS
-     * Verifier.verify("a b c 1 2 3").alphanumericSpace() => PASS
+     * Verifier.verify((String) null).alphanumericSpace() => FAIL
+     * Verifier.verify("\0 \r \n").alphanumericSpace()    => FAIL
+     * Verifier.verify("1 2 3").alphanumericSpace()       => PASS
+     * Verifier.verify("a b c").alphanumericSpace()       => PASS
+     * Verifier.verify("a b c 1 2 3").alphanumericSpace() => PASS
      * 
* * @return A reference to this {@link StringVerifier} for chaining purposes. @@ -263,10 +263,10 @@ public Boolean apply(final Character character) { * Verifies that the value only contains ASCII printable characters. *

*
-     * Verifier.verify((String) null).asciiPrintable() => FAIL
-     * Verifier.verify("\0 abc").asciiPrintable()      => FAIL
-     * Verifier.verify("abc ~ 123").asciiPrintable()   => PASS
-     * Verifier.verify("É १").asciiPrintable()         => FAIL
+     * Verifier.verify((String) null).asciiPrintable() => FAIL
+     * Verifier.verify("\0 abc").asciiPrintable()      => FAIL
+     * Verifier.verify("abc ~ 123").asciiPrintable()   => PASS
+     * Verifier.verify("É १").asciiPrintable()         => FAIL
      * 
* * @return A reference to this {@link StringVerifier} for chaining purposes. @@ -295,13 +295,13 @@ public Boolean apply(final Character character) { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((String) null).blank() => PASS
-     * Verifier.verify("abc 123").blank()     => FAIL
-     * Verifier.verify("  abc 123  ").blank() => FAIL
-     * Verifier.verify("  \r\nabc").blank()   => FAIL
-     * Verifier.verify("").blank()            => PASS
-     * Verifier.verify("  ").blank()          => PASS
-     * Verifier.verify("\r\n\t").blank()      => PASS
+     * Verifier.verify((String) null).blank() => PASS
+     * Verifier.verify("abc 123").blank()     => FAIL
+     * Verifier.verify("  abc 123  ").blank() => FAIL
+     * Verifier.verify("  \r\nabc").blank()   => FAIL
+     * Verifier.verify("").blank()            => PASS
+     * Verifier.verify("  ").blank()          => PASS
+     * Verifier.verify("\r\n\t").blank()      => PASS
      * 
* * @return A reference to this {@link StringVerifier} for chaining purposes. @@ -326,13 +326,13 @@ public StringVerifier blank() throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((String) null).contain(*)             => FAIL
-     * Verifier.verify(*).contain(null)                      => FAIL
-     * Verifier.verify(*).contain("")                        => PASS
-     * Verifier.verify("abc def 123").contain("ghi")         => FAIL
-     * Verifier.verify("abc def 123").contain("def")         => PASS
-     * Verifier.verify("abc def 123").contain("abc def 123") => PASS
-     * Verifier.verify("abc def 123").contain("DEF")         => FAIL
+     * Verifier.verify((String) null).contain(*)             => FAIL
+     * Verifier.verify(*).contain(null)                      => FAIL
+     * Verifier.verify(*).contain("")                        => PASS
+     * Verifier.verify("abc def 123").contain("ghi")         => FAIL
+     * Verifier.verify("abc def 123").contain("def")         => PASS
+     * Verifier.verify("abc def 123").contain("abc def 123") => PASS
+     * Verifier.verify("abc def 123").contain("DEF")         => FAIL
      * 
* * @param other @@ -359,12 +359,12 @@ public StringVerifier contain(final CharSequence other) throws VerifierException * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((String) null).containAll(*)            => FAIL
-     * Verifier.verify(*).containAll((CharSequence[]) null)    => PASS
-     * Verifier.verify("abc def 123").containAll("ghi", "456") => FAIL
-     * Verifier.verify("abc def 123").containAll("def", "456") => FAIL
-     * Verifier.verify("abc def 123").containAll("123", "def") => PASS
-     * Verifier.verify("abc def 123").containAll("123", "ABC") => FAIL
+     * Verifier.verify((String) null).containAll(*)            => FAIL
+     * Verifier.verify(*).containAll((CharSequence[]) null)    => PASS
+     * Verifier.verify("abc def 123").containAll("ghi", "456") => FAIL
+     * Verifier.verify("abc def 123").containAll("def", "456") => FAIL
+     * Verifier.verify("abc def 123").containAll("123", "def") => PASS
+     * Verifier.verify("abc def 123").containAll("123", "ABC") => FAIL
      * 
* * @param others @@ -396,12 +396,12 @@ public Boolean apply(final CharSequence input) { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((String) null).containAllIgnoreCase(*)            => FAIL
-     * Verifier.verify(*).containAllIgnoreCase((CharSequence[]) null)    => PASS
-     * Verifier.verify("abc def 123").containAllIgnoreCase("ghi", "456") => FAIL
-     * Verifier.verify("abc def 123").containAllIgnoreCase("def", "456") => FAIL
-     * Verifier.verify("abc def 123").containAllIgnoreCase("123", "def") => PASS
-     * Verifier.verify("abc def 123").containAllIgnoreCase("123", "DEF") => PASS
+     * Verifier.verify((String) null).containAllIgnoreCase(*)            => FAIL
+     * Verifier.verify(*).containAllIgnoreCase((CharSequence[]) null)    => PASS
+     * Verifier.verify("abc def 123").containAllIgnoreCase("ghi", "456") => FAIL
+     * Verifier.verify("abc def 123").containAllIgnoreCase("def", "456") => FAIL
+     * Verifier.verify("abc def 123").containAllIgnoreCase("123", "def") => PASS
+     * Verifier.verify("abc def 123").containAllIgnoreCase("123", "DEF") => PASS
      * 
* * @param others @@ -433,13 +433,13 @@ public Boolean apply(final CharSequence input) { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((String) null).containAny(*)            => FAIL
-     * Verifier.verify(*).containAny((CharSequence[]) null)    => FAIL
-     * Verifier.verify(*).containAny("", *)                    => PASS
-     * Verifier.verify("abc def 123").containAny("ghi", "456") => FAIL
-     * Verifier.verify("abc def 123").containAny("def", "456") => PASS
-     * Verifier.verify("abc def 123").containAny("123", "def") => PASS
-     * Verifier.verify("abc def 123").containAny("DEF", "456") => FAIL
+     * Verifier.verify((String) null).containAny(*)            => FAIL
+     * Verifier.verify(*).containAny((CharSequence[]) null)    => FAIL
+     * Verifier.verify(*).containAny("", *)                    => PASS
+     * Verifier.verify("abc def 123").containAny("ghi", "456") => FAIL
+     * Verifier.verify("abc def 123").containAny("def", "456") => PASS
+     * Verifier.verify("abc def 123").containAny("123", "def") => PASS
+     * Verifier.verify("abc def 123").containAny("DEF", "456") => FAIL
      * 
* * @param others @@ -471,13 +471,13 @@ public Boolean apply(final CharSequence input) { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((String) null).containAnyIgnoreCase(*)            => FAIL
-     * Verifier.verify(*).containAnyIgnoreCase((CharSequence[]) null)    => FAIL
-     * Verifier.verify(*).containAnyIgnoreCase("", *)                    => PASS
-     * Verifier.verify("abc def 123").containAnyIgnoreCase("ghi", "456") => FAIL
-     * Verifier.verify("abc def 123").containAnyIgnoreCase("def", "456") => PASS
-     * Verifier.verify("abc def 123").containAnyIgnoreCase("123", "def") => PASS
-     * Verifier.verify("abc def 123").containAnyIgnoreCase("DEF", "456") => PASS
+     * Verifier.verify((String) null).containAnyIgnoreCase(*)            => FAIL
+     * Verifier.verify(*).containAnyIgnoreCase((CharSequence[]) null)    => FAIL
+     * Verifier.verify(*).containAnyIgnoreCase("", *)                    => PASS
+     * Verifier.verify("abc def 123").containAnyIgnoreCase("ghi", "456") => FAIL
+     * Verifier.verify("abc def 123").containAnyIgnoreCase("def", "456") => PASS
+     * Verifier.verify("abc def 123").containAnyIgnoreCase("123", "def") => PASS
+     * Verifier.verify("abc def 123").containAnyIgnoreCase("DEF", "456") => PASS
      * 
* * @param others @@ -509,13 +509,13 @@ public Boolean apply(final CharSequence input) { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((String) null).containIgnoreCase(*)             => FAIL
-     * Verifier.verify(*).containIgnoreCase(null)                      => FAIL
-     * Verifier.verify(*).containIgnoreCase("")                        => PASS
-     * Verifier.verify("abc def 123").containIgnoreCase("ghi")         => FAIL
-     * Verifier.verify("abc def 123").containIgnoreCase("def")         => PASS
-     * Verifier.verify("abc def 123").containIgnoreCase("abc def 123") => PASS
-     * Verifier.verify("abc def 123").containIgnoreCase("DEF")         => PASS
+     * Verifier.verify((String) null).containIgnoreCase(*)             => FAIL
+     * Verifier.verify(*).containIgnoreCase(null)                      => FAIL
+     * Verifier.verify(*).containIgnoreCase("")                        => PASS
+     * Verifier.verify("abc def 123").containIgnoreCase("ghi")         => FAIL
+     * Verifier.verify("abc def 123").containIgnoreCase("def")         => PASS
+     * Verifier.verify("abc def 123").containIgnoreCase("abc def 123") => PASS
+     * Verifier.verify("abc def 123").containIgnoreCase("DEF")         => PASS
      * 
* * @param other @@ -542,11 +542,11 @@ public StringVerifier containIgnoreCase(final CharSequence other) throws Verifie * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((String) null).empty() => PASS
-     * Verifier.verify("abc 123").empty()     => FAIL
-     * Verifier.verify("").empty()            => PASS
-     * Verifier.verify("  ").empty()          => FAIL
-     * Verifier.verify("\r\n\t").empty()      => FAIL
+     * Verifier.verify((String) null).empty() => PASS
+     * Verifier.verify("abc 123").empty()     => FAIL
+     * Verifier.verify("").empty()            => PASS
+     * Verifier.verify("  ").empty()          => FAIL
+     * Verifier.verify("\r\n\t").empty()      => FAIL
      * 
* * @return A reference to this {@link StringVerifier} for chaining purposes. @@ -571,13 +571,13 @@ public StringVerifier empty() throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((String) null).endWith(*)     => FAIL
-     * Verifier.verify(*).endWith(null)              => FAIL
-     * Verifier.verify(*).endWith("")                => PASS
-     * Verifier.verify("abc def").endWith("abc")     => FAIL
-     * Verifier.verify("abc def").endWith("def")     => PASS
-     * Verifier.verify("abc def").endWith("abc def") => PASS
-     * Verifier.verify("abc def").endWith("DEF")     => FAIL
+     * Verifier.verify((String) null).endWith(*)     => FAIL
+     * Verifier.verify(*).endWith(null)              => FAIL
+     * Verifier.verify(*).endWith("")                => PASS
+     * Verifier.verify("abc def").endWith("abc")     => FAIL
+     * Verifier.verify("abc def").endWith("def")     => PASS
+     * Verifier.verify("abc def").endWith("abc def") => PASS
+     * Verifier.verify("abc def").endWith("DEF")     => FAIL
      * 
* * @param other @@ -604,12 +604,12 @@ public StringVerifier endWith(final CharSequence other) throws VerifierException * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((String) null).endWithAny(*)         => FAIL
-     * Verifier.verify(*).endWithAny((CharSequence[]) null) => FAIL
-     * Verifier.verify(*).endWithAny("", *)                 => PASS
-     * Verifier.verify("abc def").endWithAny("ghi", "123")  => FAIL
-     * Verifier.verify("abc def").endWithAny("def", "123")  => PASS
-     * Verifier.verify("abc def").endWithAny("DEF", "123")  => FAIL
+     * Verifier.verify((String) null).endWithAny(*)         => FAIL
+     * Verifier.verify(*).endWithAny((CharSequence[]) null) => FAIL
+     * Verifier.verify(*).endWithAny("", *)                 => PASS
+     * Verifier.verify("abc def").endWithAny("ghi", "123")  => FAIL
+     * Verifier.verify("abc def").endWithAny("def", "123")  => PASS
+     * Verifier.verify("abc def").endWithAny("DEF", "123")  => FAIL
      * 
* * @param others @@ -641,12 +641,12 @@ public Boolean apply(final CharSequence input) { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((String) null).endWithAnyIgnoreCase(*)         => FAIL
-     * Verifier.verify(*).endWithAnyIgnoreCase((CharSequence[]) null) => FAIL
-     * Verifier.verify(*).endWithAnyIgnoreCase("", *)                 => PASS
-     * Verifier.verify("abc def").endWithAnyIgnoreCase("ghi", "123")  => FAIL
-     * Verifier.verify("abc def").endWithAnyIgnoreCase("def", "123")  => PASS
-     * Verifier.verify("abc def").endWithAnyIgnoreCase("DEF", "123")  => PASS
+     * Verifier.verify((String) null).endWithAnyIgnoreCase(*)         => FAIL
+     * Verifier.verify(*).endWithAnyIgnoreCase((CharSequence[]) null) => FAIL
+     * Verifier.verify(*).endWithAnyIgnoreCase("", *)                 => PASS
+     * Verifier.verify("abc def").endWithAnyIgnoreCase("ghi", "123")  => FAIL
+     * Verifier.verify("abc def").endWithAnyIgnoreCase("def", "123")  => PASS
+     * Verifier.verify("abc def").endWithAnyIgnoreCase("DEF", "123")  => PASS
      * 
* * @param others @@ -678,13 +678,13 @@ public Boolean apply(final CharSequence input) { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((String) null).endWithIgnoreCase(*)     => FAIL
-     * Verifier.verify(*).endWithIgnoreCase(null)              => FAIL
-     * Verifier.verify(*).endWithIgnoreCase("")                => PASS
-     * Verifier.verify("abc def").endWithIgnoreCase("abc")     => FAIL
-     * Verifier.verify("abc def").endWithIgnoreCase("def")     => PASS
-     * Verifier.verify("abc def").endWithIgnoreCase("abc def") => PASS
-     * Verifier.verify("abc def").endWithIgnoreCase("DEF")     => PASS
+     * Verifier.verify((String) null).endWithIgnoreCase(*)     => FAIL
+     * Verifier.verify(*).endWithIgnoreCase(null)              => FAIL
+     * Verifier.verify(*).endWithIgnoreCase("")                => PASS
+     * Verifier.verify("abc def").endWithIgnoreCase("abc")     => FAIL
+     * Verifier.verify("abc def").endWithIgnoreCase("def")     => PASS
+     * Verifier.verify("abc def").endWithIgnoreCase("abc def") => PASS
+     * Verifier.verify("abc def").endWithIgnoreCase("DEF")     => PASS
      * 
* * @param other @@ -711,13 +711,13 @@ public StringVerifier endWithIgnoreCase(final CharSequence other) throws Verifie * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).equalToAnyIgnoreCase()                                => FAIL
-     * Verifier.verify(*).equalToAnyIgnoreCase((CharSequence[]) null)           => FAIL
-     * Verifier.verify((String) null).equalToAnyIgnoreCase("ghi", "def", null)  => PASS
-     * Verifier.verify((String) null).equalToAnyIgnoreCase("ghi", "def", "abc") => FAIL
-     * Verifier.verify("abc").equalToAnyIgnoreCase("ghi", "def", null)          => FAIL
-     * Verifier.verify("abc").equalToAnyIgnoreCase("ghi", "def", "abc")         => PASS
-     * Verifier.verify("abc").equalToAnyIgnoreCase("GHI", "DEF", "ABC")         => PASS
+     * Verifier.verify(*).equalToAnyIgnoreCase()                                => FAIL
+     * Verifier.verify(*).equalToAnyIgnoreCase((CharSequence[]) null)           => FAIL
+     * Verifier.verify((String) null).equalToAnyIgnoreCase("ghi", "def", null)  => PASS
+     * Verifier.verify((String) null).equalToAnyIgnoreCase("ghi", "def", "abc") => FAIL
+     * Verifier.verify("abc").equalToAnyIgnoreCase("ghi", "def", null)          => FAIL
+     * Verifier.verify("abc").equalToAnyIgnoreCase("ghi", "def", "abc")         => PASS
+     * Verifier.verify("abc").equalToAnyIgnoreCase("GHI", "DEF", "ABC")         => PASS
      * 
* * @param others @@ -750,12 +750,12 @@ public Boolean apply(final CharSequence input) { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((String) null).equalToIgnoreCase(null)  => PASS
-     * Verifier.verify((String) null).equalToIgnoreCase("abc") => FAIL
-     * Verifier.verify("abc").equalToIgnoreCase(null)          => FAIL
-     * Verifier.verify("abc").equalToIgnoreCase("abc")         => PASS
-     * Verifier.verify("abc").equalToIgnoreCase("ABC")         => PASS
-     * Verifier.verify("abc").equalToIgnoreCase("def")         => FAIL
+     * Verifier.verify((String) null).equalToIgnoreCase(null)  => PASS
+     * Verifier.verify((String) null).equalToIgnoreCase("abc") => FAIL
+     * Verifier.verify("abc").equalToIgnoreCase(null)          => FAIL
+     * Verifier.verify("abc").equalToIgnoreCase("abc")         => PASS
+     * Verifier.verify("abc").equalToIgnoreCase("ABC")         => PASS
+     * Verifier.verify("abc").equalToIgnoreCase("def")         => FAIL
      * 
* * @param other @@ -789,12 +789,12 @@ public StringVerifier falsy() throws VerifierException { * Verifies that the value contains only lower case letters. *

*
-     * Verifier.verify((String) null).lowerCase() => FAIL
-     * Verifier.verify("ABC").lowerCase()         => FAIL
-     * Verifier.verify("abcDEF").lowerCase()      => FAIL
-     * Verifier.verify("abc123").lowerCase()      => FAIL
-     * Verifier.verify("abc").lowerCase()         => PASS
-     * Verifier.verify("a b c").lowerCase()       => FAIL
+     * Verifier.verify((String) null).lowerCase() => FAIL
+     * Verifier.verify("ABC").lowerCase()         => FAIL
+     * Verifier.verify("abcDEF").lowerCase()      => FAIL
+     * Verifier.verify("abc123").lowerCase()      => FAIL
+     * Verifier.verify("abc").lowerCase()         => PASS
+     * Verifier.verify("a b c").lowerCase()       => FAIL
      * 
* * @return A reference to this {@link StringVerifier} for chaining purposes. @@ -824,11 +824,11 @@ public Boolean apply(final Character character) { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((String) null).match(*)       => FAIL
-     * Verifier.verify(*).match((CharSequence) null) => FAIL
-     * Verifier.verify(*).match(".*")                => PASS
-     * Verifier.verify("foo").match("fo{2}")         => PASS
-     * Verifier.verify("food").match("fo{2}")        => FAIL
+     * Verifier.verify((String) null).match(*)       => FAIL
+     * Verifier.verify(*).match((CharSequence) null) => FAIL
+     * Verifier.verify(*).match(".*")                => PASS
+     * Verifier.verify("foo").match("fo{2}")         => PASS
+     * Verifier.verify("food").match("fo{2}")        => FAIL
      * 
* * @param regex @@ -855,11 +855,11 @@ public StringVerifier match(final CharSequence regex) throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((String) null).match(*)                 => FAIL
-     * Verifier.verify(*).match((Pattern) null)                => FAIL
-     * Verifier.verify(*).match(Pattern.compile(".*"))         => PASS
-     * Verifier.verify("foo").match(Pattern.compile("fo{2}"))  => PASS
-     * Verifier.verify("food").match(Pattern.compile("fo{2}")) => FAIL
+     * Verifier.verify((String) null).match(*)                 => FAIL
+     * Verifier.verify(*).match((Pattern) null)                => FAIL
+     * Verifier.verify(*).match(Pattern.compile(".*"))         => PASS
+     * Verifier.verify("foo").match(Pattern.compile("fo{2}"))  => PASS
+     * Verifier.verify("food").match(Pattern.compile("fo{2}")) => FAIL
      * 
* * @param pattern @@ -883,12 +883,12 @@ public StringVerifier match(final Pattern pattern) throws VerifierException { * Verifies that the value contains only digits. *

*
-     * Verifier.verify((String) null).numeric() => FAIL
-     * Verifier.verify("\0\r\n").numeric()      => FAIL
-     * Verifier.verify("123").numeric()         => PASS
-     * Verifier.verify("abc").numeric()         => FAIL
-     * Verifier.verify("abc123").numeric()      => FAIL
-     * Verifier.verify("1 2 3").numeric()       => FAIL
+     * Verifier.verify((String) null).numeric() => FAIL
+     * Verifier.verify("\0\r\n").numeric()      => FAIL
+     * Verifier.verify("123").numeric()         => PASS
+     * Verifier.verify("abc").numeric()         => FAIL
+     * Verifier.verify("abc123").numeric()      => FAIL
+     * Verifier.verify("1 2 3").numeric()       => FAIL
      * 
* * @return A reference to this {@link StringVerifier} for chaining purposes. @@ -915,11 +915,11 @@ public Boolean apply(final Character character) { * Verifies that the value contains only digits or space. *

*
-     * Verifier.verify((String) null).numericSpace() => FAIL
-     * Verifier.verify("\0 \r \n").numericSpace()    => FAIL
-     * Verifier.verify("1 2 3").numericSpace()       => PASS
-     * Verifier.verify("a b c").numericSpace()       => FAIL
-     * Verifier.verify("a b c 1 2 3").numericSpace() => FAIL
+     * Verifier.verify((String) null).numericSpace() => FAIL
+     * Verifier.verify("\0 \r \n").numericSpace()    => FAIL
+     * Verifier.verify("1 2 3").numericSpace()       => PASS
+     * Verifier.verify("a b c").numericSpace()       => FAIL
+     * Verifier.verify("a b c 1 2 3").numericSpace() => FAIL
      * 
* * @return A reference to this {@link StringVerifier} for chaining purposes. @@ -949,13 +949,13 @@ public Boolean apply(final Character character) { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((String) null).sizeOf(1) => FAIL
-     * Verifier.verify((String) null).sizeOf(0) => PASS
-     * Verifier.verify("").sizeOf(1)            => FAIL
-     * Verifier.verify("").sizeOf(0)            => PASS
-     * Verifier.verify(" ").sizeOf(1)           => PASS
-     * Verifier.verify("abc 123").sizeOf(0)     => FAIL
-     * Verifier.verify("abc 123").sizeOf(7)     => PASS
+     * Verifier.verify((String) null).sizeOf(1) => FAIL
+     * Verifier.verify((String) null).sizeOf(0) => PASS
+     * Verifier.verify("").sizeOf(1)            => FAIL
+     * Verifier.verify("").sizeOf(0)            => PASS
+     * Verifier.verify(" ").sizeOf(1)           => PASS
+     * Verifier.verify("abc 123").sizeOf(0)     => FAIL
+     * Verifier.verify("abc 123").sizeOf(7)     => PASS
      * 
* * @param size @@ -981,13 +981,13 @@ public StringVerifier sizeOf(final int size) throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((String) null).startWith(*)     => FAIL
-     * Verifier.verify(*).startWith(null)              => FAIL
-     * Verifier.verify(*).startWith("")                => PASS
-     * Verifier.verify("abc def").startWith("abc")     => PASS
-     * Verifier.verify("abc def").startWith("def")     => FAIL
-     * Verifier.verify("abc def").startWith("abc def") => PASS
-     * Verifier.verify("abc def").startWith("ABC")     => FAIL
+     * Verifier.verify((String) null).startWith(*)     => FAIL
+     * Verifier.verify(*).startWith(null)              => FAIL
+     * Verifier.verify(*).startWith("")                => PASS
+     * Verifier.verify("abc def").startWith("abc")     => PASS
+     * Verifier.verify("abc def").startWith("def")     => FAIL
+     * Verifier.verify("abc def").startWith("abc def") => PASS
+     * Verifier.verify("abc def").startWith("ABC")     => FAIL
      * 
* * @param other @@ -1014,12 +1014,12 @@ public StringVerifier startWith(final CharSequence other) throws VerifierExcepti * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((String) null).startWithAny(*)         => FAIL
-     * Verifier.verify(*).startWithAny((CharSequence[]) null) => FAIL
-     * Verifier.verify(*).startWithAny("", *)                 => PASS
-     * Verifier.verify("abc def").startWithAny("ghi", "123")  => FAIL
-     * Verifier.verify("abc def").startWithAny("abc", "123")  => PASS
-     * Verifier.verify("abc def").startWithAny("ABC", "123")  => FAIL
+     * Verifier.verify((String) null).startWithAny(*)         => FAIL
+     * Verifier.verify(*).startWithAny((CharSequence[]) null) => FAIL
+     * Verifier.verify(*).startWithAny("", *)                 => PASS
+     * Verifier.verify("abc def").startWithAny("ghi", "123")  => FAIL
+     * Verifier.verify("abc def").startWithAny("abc", "123")  => PASS
+     * Verifier.verify("abc def").startWithAny("ABC", "123")  => FAIL
      * 
* * @param others @@ -1051,12 +1051,12 @@ public Boolean apply(final CharSequence input) { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((String) null).startWithAnyIgnoreCase(*)         => FAIL
-     * Verifier.verify(*).startWithAnyIgnoreCase((CharSequence[]) null) => FAIL
-     * Verifier.verify(*).startWithAnyIgnoreCase("", *)                 => PASS
-     * Verifier.verify("abc def").startWithAnyIgnoreCase("ghi", "123")  => FAIL
-     * Verifier.verify("abc def").startWithAnyIgnoreCase("abc", "123")  => PASS
-     * Verifier.verify("abc def").startWithAnyIgnoreCase("ABC", "123")  => PASS
+     * Verifier.verify((String) null).startWithAnyIgnoreCase(*)         => FAIL
+     * Verifier.verify(*).startWithAnyIgnoreCase((CharSequence[]) null) => FAIL
+     * Verifier.verify(*).startWithAnyIgnoreCase("", *)                 => PASS
+     * Verifier.verify("abc def").startWithAnyIgnoreCase("ghi", "123")  => FAIL
+     * Verifier.verify("abc def").startWithAnyIgnoreCase("abc", "123")  => PASS
+     * Verifier.verify("abc def").startWithAnyIgnoreCase("ABC", "123")  => PASS
      * 
* * @param others @@ -1088,13 +1088,13 @@ public Boolean apply(final CharSequence input) { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((String) null).startWithIgnoreCase(*)     => FAIL
-     * Verifier.verify(*).startWithIgnoreCase(null)              => FAIL
-     * Verifier.verify(*).startWithIgnoreCase("")                => PASS
-     * Verifier.verify("abc def").startWithIgnoreCase("abc")     => PASS
-     * Verifier.verify("abc def").startWithIgnoreCase("def")     => FAIL
-     * Verifier.verify("abc def").startWithIgnoreCase("abc def") => PASS
-     * Verifier.verify("abc def").startWithIgnoreCase("ABC")     => PASS
+     * Verifier.verify((String) null).startWithIgnoreCase(*)     => FAIL
+     * Verifier.verify(*).startWithIgnoreCase(null)              => FAIL
+     * Verifier.verify(*).startWithIgnoreCase("")                => PASS
+     * Verifier.verify("abc def").startWithIgnoreCase("abc")     => PASS
+     * Verifier.verify("abc def").startWithIgnoreCase("def")     => FAIL
+     * Verifier.verify("abc def").startWithIgnoreCase("abc def") => PASS
+     * Verifier.verify("abc def").startWithIgnoreCase("ABC")     => PASS
      * 
* * @param other @@ -1128,12 +1128,12 @@ public StringVerifier truthy() throws VerifierException { * Verifies that the value contains only upper case letters. *

*
-     * Verifier.verify((String) null).upperCase() => FAIL
-     * Verifier.verify("abc").upperCase()         => FAIL
-     * Verifier.verify("abcDEF").upperCase()      => FAIL
-     * Verifier.verify("ABC123").upperCase()      => FAIL
-     * Verifier.verify("ABC").upperCase()         => PASS
-     * Verifier.verify("A B C").upperCase()       => FAIL
+     * Verifier.verify((String) null).upperCase() => FAIL
+     * Verifier.verify("abc").upperCase()         => FAIL
+     * Verifier.verify("abcDEF").upperCase()      => FAIL
+     * Verifier.verify("ABC123").upperCase()      => FAIL
+     * Verifier.verify("ABC").upperCase()         => PASS
+     * Verifier.verify("A B C").upperCase()       => FAIL
      * 
* * @return A reference to this {@link StringVerifier} for chaining purposes. diff --git a/src/main/java/io/skelp/verifier/type/ThrowableVerifier.java b/src/main/java/io/skelp/verifier/type/ThrowableVerifier.java index 87b1409..12ac3f4 100644 --- a/src/main/java/io/skelp/verifier/type/ThrowableVerifier.java +++ b/src/main/java/io/skelp/verifier/type/ThrowableVerifier.java @@ -64,11 +64,11 @@ public ThrowableVerifier(final Verification verification) { * Verifies that the value is a checked exception. *

*
-     * Verifier.verify((Throwable) null).checked()           => FAIL
-     * Verifier.verify(new Exception()).checked()            => PASS
-     * Verifier.verify(new IOException()).checked()          => PASS
-     * Verifier.verify(new RuntimeException()).checked()     => FAIL
-     * Verifier.verify(new NullPointerException()).checked() => FAIL
+     * Verifier.verify((Throwable) null).checked()           => FAIL
+     * Verifier.verify(new Exception()).checked()            => PASS
+     * Verifier.verify(new IOException()).checked()          => PASS
+     * Verifier.verify(new RuntimeException()).checked()     => FAIL
+     * Verifier.verify(new NullPointerException()).checked() => FAIL
      * 
* * @return A reference to this {@link ThrowableVerifier} for chaining purposes. @@ -93,14 +93,14 @@ public ThrowableVerifier checked() throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((Throwable) null).causedBy(*)                                                         => FAIL
-     * Verifier.verify(*).causedBy((Class) null)                                                             => FAIL
-     * Verifier.verify(new IOException()).causedBy(NullPointerException.class)                               => FAIL
-     * Verifier.verify(new IOException()).causedBy(IOException.class)                                        => PASS
-     * Verifier.verify(new NullPointerException(new IOException())).causedBy(IllegalArgumentException.class) => FAIL
-     * Verifier.verify(new NullPointerException(new IOException())).causedBy(RuntimeException.class)         => PASS
-     * Verifier.verify(new NullPointerException(new IOException())).causedBy(IOException.class)              => PASS
-     * Verifier.verify(*).causedBy(Throwable.class)                                                          => PASS
+     * Verifier.verify((Throwable) null).causedBy(*)                                                         => FAIL
+     * Verifier.verify(*).causedBy((Class) null)                                                             => FAIL
+     * Verifier.verify(new IOException()).causedBy(NullPointerException.class)                               => FAIL
+     * Verifier.verify(new IOException()).causedBy(IOException.class)                                        => PASS
+     * Verifier.verify(new NullPointerException(new IOException())).causedBy(IllegalArgumentException.class) => FAIL
+     * Verifier.verify(new NullPointerException(new IOException())).causedBy(RuntimeException.class)         => PASS
+     * Verifier.verify(new NullPointerException(new IOException())).causedBy(IOException.class)              => PASS
+     * Verifier.verify(*).causedBy(Throwable.class)                                                          => PASS
      * 
* * @param type @@ -134,11 +134,11 @@ public ThrowableVerifier causedBy(final Class type) throws VerifierException * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((Throwable) null).causedBy(*)                                  => FAIL
-     * Verifier.verify(*).causedBy((Throwable) null)                                  => FAIL
-     * Verifier.verify(ex = new IOException()).causedBy(new IOException())            => FAIL
-     * Verifier.verify(ex = new IOException()).causedBy(ex)                           => PASS
-     * Verifier.verify(new NullPointerException(ex = new IOException())).causedBy(ex) => PASS
+     * Verifier.verify((Throwable) null).causedBy(*)                                  => FAIL
+     * Verifier.verify(*).causedBy((Throwable) null)                                  => FAIL
+     * Verifier.verify(ex = new IOException()).causedBy(new IOException())            => FAIL
+     * Verifier.verify(ex = new IOException()).causedBy(ex)                           => PASS
+     * Verifier.verify(new NullPointerException(ex = new IOException())).causedBy(ex) => PASS
      * 
* * @param cause @@ -167,11 +167,11 @@ public ThrowableVerifier causedBy(final Throwable cause) throws VerifierExceptio * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((Throwable) null).causedBy(*, *)                                  => FAIL
-     * Verifier.verify(*).causedBy(null, *)                                              => FAIL
-     * Verifier.verify(ex = new IOException()).causedBy(new IOException(), *)            => FAIL
-     * Verifier.verify(ex = new IOException()).causedBy(ex, *)                           => PASS
-     * Verifier.verify(new NullPointerException(ex = new IOException())).causedBy(ex, *) => PASS
+     * Verifier.verify((Throwable) null).causedBy(*, *)                                  => FAIL
+     * Verifier.verify(*).causedBy(null, *)                                              => FAIL
+     * Verifier.verify(ex = new IOException()).causedBy(new IOException(), *)            => FAIL
+     * Verifier.verify(ex = new IOException()).causedBy(ex, *)                           => PASS
+     * Verifier.verify(new NullPointerException(ex = new IOException())).causedBy(ex, *) => PASS
      * 
* * @param cause @@ -201,13 +201,13 @@ public ThrowableVerifier causedBy(final Throwable cause, final Object name) thro * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((Throwable) null).message(*)                                  => FAIL
-     * Verifier.verify(new Exception()).message(null)                                => PASS
-     * Verifier.verify(new Exception()).message("abc")                               => FAIL
-     * Verifier.verify(new Exception("abc")).message(null)                           => FAIL
-     * Verifier.verify(new Exception("abc")).message("def")                          => FAIL
-     * Verifier.verify(new Exception("abc")).message("abc")                          => PASS
-     * Verifier.verify(new Exception("abc")).message("ABC")                          => FAIL
+     * Verifier.verify((Throwable) null).message(*)                                  => FAIL
+     * Verifier.verify(new Exception()).message(null)                                => PASS
+     * Verifier.verify(new Exception()).message("abc")                               => FAIL
+     * Verifier.verify(new Exception("abc")).message(null)                           => FAIL
+     * Verifier.verify(new Exception("abc")).message("def")                          => FAIL
+     * Verifier.verify(new Exception("abc")).message("abc")                          => PASS
+     * Verifier.verify(new Exception("abc")).message("ABC")                          => FAIL
      * 
* * @param message @@ -230,11 +230,11 @@ public ThrowableVerifier message(final String message) throws VerifierException * Verifies that the value is a unchecked exception. *

*
-     * Verifier.verify((Throwable) null).unchecked()           => FAIL
-     * Verifier.verify(new Exception()).unchecked()            => FAIL
-     * Verifier.verify(new IOException()).unchecked()          => FAIL
-     * Verifier.verify(new RuntimeException()).unchecked()     => PASS
-     * Verifier.verify(new NullPointerException()).unchecked() => PASS
+     * Verifier.verify((Throwable) null).unchecked()           => FAIL
+     * Verifier.verify(new Exception()).unchecked()            => FAIL
+     * Verifier.verify(new IOException()).unchecked()          => FAIL
+     * Verifier.verify(new RuntimeException()).unchecked()     => PASS
+     * Verifier.verify(new NullPointerException()).unchecked() => PASS
      * 
* * @return A reference to this {@link ThrowableVerifier} for chaining purposes. diff --git a/src/main/java/io/skelp/verifier/type/base/BaseCollectionVerifier.java b/src/main/java/io/skelp/verifier/type/base/BaseCollectionVerifier.java index b2b5469..2a919bc 100644 --- a/src/main/java/io/skelp/verifier/type/base/BaseCollectionVerifier.java +++ b/src/main/java/io/skelp/verifier/type/base/BaseCollectionVerifier.java @@ -67,12 +67,12 @@ public BaseCollectionVerifier(final Verification verification) { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((Object[]) null).contain(*)                 => FAIL
-     * Verifier.verify(new Object[0]).contain(*)                   => FAIL
-     * Verifier.verify(new Object[]{123, 456, 789}).contain(147)   => FAIL
-     * Verifier.verify(new Object[]{123, 456, 789}).contain(789)   => PASS
-     * Verifier.verify(new Object[]{123, 456, 789}).contain(null)  => FAIL
-     * Verifier.verify(new Object[]{123, 456, null}).contain(null) => PASS
+     * Verifier.verify((Object[]) null).contain(*)                 => FAIL
+     * Verifier.verify(new Object[0]).contain(*)                   => FAIL
+     * Verifier.verify(new Object[]{123, 456, 789}).contain(147)   => FAIL
+     * Verifier.verify(new Object[]{123, 456, 789}).contain(789)   => PASS
+     * Verifier.verify(new Object[]{123, 456, 789}).contain(null)  => FAIL
+     * Verifier.verify(new Object[]{123, 456, null}).contain(null) => PASS
      * 
* * @param element @@ -98,14 +98,14 @@ public V contain(final E element) throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((Object[]) null).containAll(*)                      => FAIL
-     * Verifier.verify(new Object[0]).containAll(*)                        => FAIL
-     * Verifier.verify(new Object[]{*}).containAll((Object[]) null)        => PASS
-     * Verifier.verify(new Object[]{123, 456, 789}).containAll(147, 258)   => FAIL
-     * Verifier.verify(new Object[]{123, 456, 789}).containAll(123, 147)   => FAIL
-     * Verifier.verify(new Object[]{123, 456, 789}).containAll(789, 456)   => PASS
-     * Verifier.verify(new Object[]{123, 456, 789}).containAll(789, null)  => FAIL
-     * Verifier.verify(new Object[]{123, 456, null}).containAll(123, null) => PASS
+     * Verifier.verify((Object[]) null).containAll(*)                      => FAIL
+     * Verifier.verify(new Object[0]).containAll(*)                        => FAIL
+     * Verifier.verify(new Object[]{*}).containAll((Object[]) null)        => PASS
+     * Verifier.verify(new Object[]{123, 456, 789}).containAll(147, 258)   => FAIL
+     * Verifier.verify(new Object[]{123, 456, 789}).containAll(123, 147)   => FAIL
+     * Verifier.verify(new Object[]{123, 456, 789}).containAll(789, 456)   => PASS
+     * Verifier.verify(new Object[]{123, 456, 789}).containAll(789, null)  => FAIL
+     * Verifier.verify(new Object[]{123, 456, null}).containAll(123, null) => PASS
      * 
* * @param elements @@ -136,14 +136,14 @@ public Boolean apply(final E input) { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((Object[]) null).containAny(*)                      => FAIL
-     * Verifier.verify(new Object[0]).containAny(*)                        => FAIL
-     * Verifier.verify(new Object[]{*}).containAny((Object[]) null)        => FAIL
-     * Verifier.verify(new Object[]{123, 456, 789}).containAny(147, 258)   => FAIL
-     * Verifier.verify(new Object[]{123, 456, 789}).containAny(123, 147)   => PASS
-     * Verifier.verify(new Object[]{123, 456, 789}).containAny(789, 456)   => PASS
-     * Verifier.verify(new Object[]{123, 456, 789}).containAny(789, null)  => PASS
-     * Verifier.verify(new Object[]{123, 456, null}).containAny(147, null) => PASS
+     * Verifier.verify((Object[]) null).containAny(*)                      => FAIL
+     * Verifier.verify(new Object[0]).containAny(*)                        => FAIL
+     * Verifier.verify(new Object[]{*}).containAny((Object[]) null)        => FAIL
+     * Verifier.verify(new Object[]{123, 456, 789}).containAny(147, 258)   => FAIL
+     * Verifier.verify(new Object[]{123, 456, 789}).containAny(123, 147)   => PASS
+     * Verifier.verify(new Object[]{123, 456, 789}).containAny(789, 456)   => PASS
+     * Verifier.verify(new Object[]{123, 456, 789}).containAny(789, null)  => PASS
+     * Verifier.verify(new Object[]{123, 456, null}).containAny(147, null) => PASS
      * 
* * @param elements @@ -174,9 +174,9 @@ public Boolean apply(final E input) { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((Object[]) null).empty()             => PASS
-     * Verifier.verify(new Object[0]).empty()               => PASS
-     * Verifier.verify(new Object[]{123, 456, 789}).empty() => FAIL
+     * Verifier.verify((Object[]) null).empty()             => PASS
+     * Verifier.verify(new Object[0]).empty()               => PASS
+     * Verifier.verify(new Object[]{123, 456, 789}).empty() => FAIL
      * 
* * @return A reference to this {@link BaseCollectionVerifier} for chaining purposes. @@ -200,12 +200,12 @@ public V empty() throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify((Object[]) null).sizeOf(1)             => FAIL
-     * Verifier.verify((Object[]) null).sizeOf(0)             => PASS
-     * Verifier.verify(new Object[0]).sizeOf(1)               => FAIL
-     * Verifier.verify(new Object[0]).sizeOf(0)               => PASS
-     * Verifier.verify(new Object[]{123, 456, 789}).sizeOf(0) => FAIL
-     * Verifier.verify(new Object[]{123, 456, 789}).sizeOf(3) => PASS
+     * Verifier.verify((Object[]) null).sizeOf(1)             => FAIL
+     * Verifier.verify((Object[]) null).sizeOf(0)             => PASS
+     * Verifier.verify(new Object[0]).sizeOf(1)               => FAIL
+     * Verifier.verify(new Object[0]).sizeOf(0)               => PASS
+     * Verifier.verify(new Object[]{123, 456, 789}).sizeOf(0) => FAIL
+     * Verifier.verify(new Object[]{123, 456, 789}).sizeOf(3) => PASS
      * 
* * @param size @@ -232,13 +232,13 @@ public V sizeOf(final int size) throws VerifierException { * {@code assertion} instead of the value itself. *

*
-     * Verifier.verify(*).thatAll(null)                                           => FAIL
-     * Verifier.verify(*).not().thatAll(null)                                     => FAIL
-     * Verifier.verify((Object[]) null).thatAll(value -> true)                    => FAIL
-     * Verifier.verify(new Object[0]).thatAll(value -> false)                     => PASS
-     * Verifier.verify(new Object[]{123, 456, 789}).thatAll(value -> value < 0)   => FAIL
-     * Verifier.verify(new Object[]{123, 456, 789}).thatAll(value -> value > 200) => FAIL
-     * Verifier.verify(new Object[]{123, 456, 789}).thatAll(value -> value > 100) => PASS
+     * Verifier.verify(*).thatAll(null)                                                 => FAIL
+     * Verifier.verify(*).not().thatAll(null)                                           => FAIL
+     * Verifier.verify((Object[]) null).thatAll(value -> true)                       => FAIL
+     * Verifier.verify(new Object[0]).thatAll(value -> false)                        => PASS
+     * Verifier.verify(new Object[]{123, 456, 789}).thatAll(value -> value < 0)   => FAIL
+     * Verifier.verify(new Object[]{123, 456, 789}).thatAll(value -> value > 200) => FAIL
+     * Verifier.verify(new Object[]{123, 456, 789}).thatAll(value -> value > 100) => PASS
      * 
* * @param assertion @@ -302,13 +302,13 @@ public Boolean apply(E input) { * {@code assertion} instead of the value itself. *

*
-     * Verifier.verify(*).thatAny(null)                                           => FAIL
-     * Verifier.verify(*).not().thatAny(null)                                     => FAIL
-     * Verifier.verify((Object[]) null).thatAny(value -> true)                    => FAIL
-     * Verifier.verify(new Object[0]).thatAny(value -> true)                      => FAIL
-     * Verifier.verify(new Object[]{123, 456, 789}).thatAny(value -> value < 0)   => FAIL
-     * Verifier.verify(new Object[]{123, 456, 789}).thatAny(value -> value > 200) => PASS
-     * Verifier.verify(new Object[]{123, 456, 789}).thatAny(value -> value > 100) => PASS
+     * Verifier.verify(*).thatAny(null)                                                 => FAIL
+     * Verifier.verify(*).not().thatAny(null)                                           => FAIL
+     * Verifier.verify((Object[]) null).thatAny(value -> true)                       => FAIL
+     * Verifier.verify(new Object[0]).thatAny(value -> true)                         => FAIL
+     * Verifier.verify(new Object[]{123, 456, 789}).thatAny(value -> value < 0)   => FAIL
+     * Verifier.verify(new Object[]{123, 456, 789}).thatAny(value -> value > 200) => PASS
+     * Verifier.verify(new Object[]{123, 456, 789}).thatAny(value -> value > 100) => PASS
      * 
* * @param assertion diff --git a/src/main/java/io/skelp/verifier/type/base/BaseComparableVerifier.java b/src/main/java/io/skelp/verifier/type/base/BaseComparableVerifier.java index fa6460f..ef499fc 100644 --- a/src/main/java/io/skelp/verifier/type/base/BaseComparableVerifier.java +++ b/src/main/java/io/skelp/verifier/type/base/BaseComparableVerifier.java @@ -60,14 +60,14 @@ public BaseComparableVerifier(final Verification verification) { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).between(*, null)            => FAIL
-     * Verifier.verify(*).between(null, *)            => FAIL
-     * Verifier.verify((Integer) null).between(*, *)  => FAIL
-     * Verifier.verify(50).between(0, 25)             => FAIL
-     * Verifier.verify(50).between(75, 100)           => FAIL
-     * Verifier.verify(50).between(0, 100)            => PASS
-     * Verifier.verify(50).between(0, 50)             => PASS
-     * Verifier.verify(50).between(50, 100)           => PASS
+     * Verifier.verify(*).between(*, null)            => FAIL
+     * Verifier.verify(*).between(null, *)            => FAIL
+     * Verifier.verify((Integer) null).between(*, *)  => FAIL
+     * Verifier.verify(50).between(0, 25)             => FAIL
+     * Verifier.verify(50).between(75, 100)           => FAIL
+     * Verifier.verify(50).between(0, 100)            => PASS
+     * Verifier.verify(50).between(0, 50)             => PASS
+     * Verifier.verify(50).between(50, 100)           => PASS
      * 
* * @param start @@ -98,14 +98,14 @@ public V between(final T start, final T end) throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).between(*, null, *, *)            => FAIL
-     * Verifier.verify(*).between(null, *, *, *)            => FAIL
-     * Verifier.verify((Integer) null).between(*, *, *, *)  => FAIL
-     * Verifier.verify(50).between(0, 25, *, *)             => FAIL
-     * Verifier.verify(50).between(75, 100, *, *)           => FAIL
-     * Verifier.verify(50).between(0, 100, *, *)            => PASS
-     * Verifier.verify(50).between(0, 50, *, *)             => PASS
-     * Verifier.verify(50).between(50, 100, *, *)           => PASS
+     * Verifier.verify(*).between(*, null, *, *)            => FAIL
+     * Verifier.verify(*).between(null, *, *, *)            => FAIL
+     * Verifier.verify((Integer) null).between(*, *, *, *)  => FAIL
+     * Verifier.verify(50).between(0, 25, *, *)             => FAIL
+     * Verifier.verify(50).between(75, 100, *, *)           => FAIL
+     * Verifier.verify(50).between(0, 100, *, *)            => PASS
+     * Verifier.verify(50).between(0, 50, *, *)             => PASS
+     * Verifier.verify(50).between(50, 100, *, *)           => PASS
      * 
* * @param start @@ -133,14 +133,14 @@ public V between(final T start, final T end, final Object startName, final Objec * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).betweenExclusive(*, null)            => FAIL
-     * Verifier.verify(*).betweenExclusive(null, *)            => FAIL
-     * Verifier.verify((Integer) null).betweenExclusive(*, *)  => FAIL
-     * Verifier.verify(50).betweenExclusive(0, 25)             => FAIL
-     * Verifier.verify(50).betweenExclusive(75, 100)           => FAIL
-     * Verifier.verify(50).betweenExclusive(0, 100)            => PASS
-     * Verifier.verify(50).betweenExclusive(0, 50)             => FAIL
-     * Verifier.verify(50).betweenExclusive(50, 100)           => FAIL
+     * Verifier.verify(*).betweenExclusive(*, null)            => FAIL
+     * Verifier.verify(*).betweenExclusive(null, *)            => FAIL
+     * Verifier.verify((Integer) null).betweenExclusive(*, *)  => FAIL
+     * Verifier.verify(50).betweenExclusive(0, 25)             => FAIL
+     * Verifier.verify(50).betweenExclusive(75, 100)           => FAIL
+     * Verifier.verify(50).betweenExclusive(0, 100)            => PASS
+     * Verifier.verify(50).betweenExclusive(0, 50)             => FAIL
+     * Verifier.verify(50).betweenExclusive(50, 100)           => FAIL
      * 
* * @param start @@ -171,14 +171,14 @@ public V betweenExclusive(final T start, final T end) throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).betweenExclusive(*, null, *, *)            => FAIL
-     * Verifier.verify(*).betweenExclusive(null, *, *, *)            => FAIL
-     * Verifier.verify((Integer) null).betweenExclusive(*, *, *, *)  => FAIL
-     * Verifier.verify(50).betweenExclusive(0, 25, *, *)             => FAIL
-     * Verifier.verify(50).betweenExclusive(75, 100, *, *)           => FAIL
-     * Verifier.verify(50).betweenExclusive(0, 100, *, *)            => PASS
-     * Verifier.verify(50).betweenExclusive(0, 50, *, *)             => FAIL
-     * Verifier.verify(50).betweenExclusive(50, 100, *, *)           => FAIL
+     * Verifier.verify(*).betweenExclusive(*, null, *, *)            => FAIL
+     * Verifier.verify(*).betweenExclusive(null, *, *, *)            => FAIL
+     * Verifier.verify((Integer) null).betweenExclusive(*, *, *, *)  => FAIL
+     * Verifier.verify(50).betweenExclusive(0, 25, *, *)             => FAIL
+     * Verifier.verify(50).betweenExclusive(75, 100, *, *)           => FAIL
+     * Verifier.verify(50).betweenExclusive(0, 100, *, *)            => PASS
+     * Verifier.verify(50).betweenExclusive(0, 50, *, *)             => FAIL
+     * Verifier.verify(50).betweenExclusive(50, 100, *, *)           => FAIL
      * 
* * @param start @@ -206,12 +206,12 @@ public V betweenExclusive(final T start, final T end, final Object startName, fi * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).greaterThan(null)              => FAIL
-     * Verifier.verify((Integer) null).greaterThan(*)    => FAIL
-     * Verifier.verify((Integer) null).greaterThan(null) => FAIL
-     * Verifier.verify(123).greaterThan(123)             => FAIL
-     * Verifier.verify(123).greaterThan(987)             => FAIL
-     * Verifier.verify(123).greaterThan(62)              => PASS
+     * Verifier.verify(*).greaterThan(null)              => FAIL
+     * Verifier.verify((Integer) null).greaterThan(*)    => FAIL
+     * Verifier.verify((Integer) null).greaterThan(null) => FAIL
+     * Verifier.verify(123).greaterThan(123)             => FAIL
+     * Verifier.verify(123).greaterThan(987)             => FAIL
+     * Verifier.verify(123).greaterThan(62)              => PASS
      * 
* * @param other @@ -240,12 +240,12 @@ public V greaterThan(final T other) throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).greaterThan(null, *)              => FAIL
-     * Verifier.verify((Integer) null).greaterThan(*, *)    => FAIL
-     * Verifier.verify((Integer) null).greaterThan(null, *) => FAIL
-     * Verifier.verify(123).greaterThan(123, *)             => FAIL
-     * Verifier.verify(123).greaterThan(987, *)             => FAIL
-     * Verifier.verify(123).greaterThan(62, *)              => PASS
+     * Verifier.verify(*).greaterThan(null, *)              => FAIL
+     * Verifier.verify((Integer) null).greaterThan(*, *)    => FAIL
+     * Verifier.verify((Integer) null).greaterThan(null, *) => FAIL
+     * Verifier.verify(123).greaterThan(123, *)             => FAIL
+     * Verifier.verify(123).greaterThan(987, *)             => FAIL
+     * Verifier.verify(123).greaterThan(62, *)              => PASS
      * 
* * @param other @@ -269,12 +269,12 @@ public V greaterThan(final T other, final Object name) throws VerifierException * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).greaterThanOrEqualTo(null)              => FAIL
-     * Verifier.verify((Integer) null).greaterThanOrEqualTo(*)    => FAIL
-     * Verifier.verify((Integer) null).greaterThanOrEqualTo(null) => PASS
-     * Verifier.verify(123).greaterThanOrEqualTo(123)             => PASS
-     * Verifier.verify(123).greaterThanOrEqualTo(987)             => FAIL
-     * Verifier.verify(123).greaterThanOrEqualTo(62)              => PASS
+     * Verifier.verify(*).greaterThanOrEqualTo(null)              => FAIL
+     * Verifier.verify((Integer) null).greaterThanOrEqualTo(*)    => FAIL
+     * Verifier.verify((Integer) null).greaterThanOrEqualTo(null) => PASS
+     * Verifier.verify(123).greaterThanOrEqualTo(123)             => PASS
+     * Verifier.verify(123).greaterThanOrEqualTo(987)             => FAIL
+     * Verifier.verify(123).greaterThanOrEqualTo(62)              => PASS
      * 
* * @param other @@ -303,12 +303,12 @@ public V greaterThanOrEqualTo(final T other) throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).greaterThanOrEqualTo(null, *)              => FAIL
-     * Verifier.verify((Integer) null).greaterThanOrEqualTo(*, *)    => FAIL
-     * Verifier.verify((Integer) null).greaterThanOrEqualTo(null, *) => PASS
-     * Verifier.verify(123).greaterThanOrEqualTo(123, *)             => PASS
-     * Verifier.verify(123).greaterThanOrEqualTo(987, *)             => FAIL
-     * Verifier.verify(123).greaterThanOrEqualTo(62, *)              => PASS
+     * Verifier.verify(*).greaterThanOrEqualTo(null, *)              => FAIL
+     * Verifier.verify((Integer) null).greaterThanOrEqualTo(*, *)    => FAIL
+     * Verifier.verify((Integer) null).greaterThanOrEqualTo(null, *) => PASS
+     * Verifier.verify(123).greaterThanOrEqualTo(123, *)             => PASS
+     * Verifier.verify(123).greaterThanOrEqualTo(987, *)             => FAIL
+     * Verifier.verify(123).greaterThanOrEqualTo(62, *)              => PASS
      * 
* * @param other @@ -332,12 +332,12 @@ public V greaterThanOrEqualTo(final T other, final Object name) throws VerifierE * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).lessThan(null)              => FAIL
-     * Verifier.verify((Integer) null).lessThan(*)    => FAIL
-     * Verifier.verify((Integer) null).lessThan(null) => FAIL
-     * Verifier.verify(123).lessThan(123)             => FAIL
-     * Verifier.verify(123).lessThan(987)             => PASS
-     * Verifier.verify(123).lessThan(62)              => FAIL
+     * Verifier.verify(*).lessThan(null)              => FAIL
+     * Verifier.verify((Integer) null).lessThan(*)    => FAIL
+     * Verifier.verify((Integer) null).lessThan(null) => FAIL
+     * Verifier.verify(123).lessThan(123)             => FAIL
+     * Verifier.verify(123).lessThan(987)             => PASS
+     * Verifier.verify(123).lessThan(62)              => FAIL
      * 
* * @param other @@ -365,12 +365,12 @@ public V lessThan(final T other) throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).lessThan(null, *)              => FAIL
-     * Verifier.verify((Integer) null).lessThan(*, *)    => FAIL
-     * Verifier.verify((Integer) null).lessThan(null, *) => FAIL
-     * Verifier.verify(123).lessThan(123, *)             => FAIL
-     * Verifier.verify(123).lessThan(987, *)             => PASS
-     * Verifier.verify(123).lessThan(62, *)              => FAIL
+     * Verifier.verify(*).lessThan(null, *)              => FAIL
+     * Verifier.verify((Integer) null).lessThan(*, *)    => FAIL
+     * Verifier.verify((Integer) null).lessThan(null, *) => FAIL
+     * Verifier.verify(123).lessThan(123, *)             => FAIL
+     * Verifier.verify(123).lessThan(987, *)             => PASS
+     * Verifier.verify(123).lessThan(62, *)              => FAIL
      * 
* * @param other @@ -394,12 +394,12 @@ public V lessThan(final T other, final Object name) throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).lessThanOrEqualTo(null)              => FAIL
-     * Verifier.verify((Integer) null).lessThanOrEqualTo(*)    => FAIL
-     * Verifier.verify((Integer) null).lessThanOrEqualTo(null) => PASS
-     * Verifier.verify(123).lessThanOrEqualTo(123)             => PASS
-     * Verifier.verify(123).lessThanOrEqualTo(987)             => PASS
-     * Verifier.verify(123).lessThanOrEqualTo(62)              => FAIL
+     * Verifier.verify(*).lessThanOrEqualTo(null)              => FAIL
+     * Verifier.verify((Integer) null).lessThanOrEqualTo(*)    => FAIL
+     * Verifier.verify((Integer) null).lessThanOrEqualTo(null) => PASS
+     * Verifier.verify(123).lessThanOrEqualTo(123)             => PASS
+     * Verifier.verify(123).lessThanOrEqualTo(987)             => PASS
+     * Verifier.verify(123).lessThanOrEqualTo(62)              => FAIL
      * 
* * @param other @@ -428,12 +428,12 @@ public V lessThanOrEqualTo(final T other) throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).lessThanOrEqualTo(null, *)              => FAIL
-     * Verifier.verify((Integer) null).lessThanOrEqualTo(*, *)    => FAIL
-     * Verifier.verify((Integer) null).lessThanOrEqualTo(null, *) => PASS
-     * Verifier.verify(123).lessThanOrEqualTo(123, *)             => PASS
-     * Verifier.verify(123).lessThanOrEqualTo(987, *)             => PASS
-     * Verifier.verify(123).lessThanOrEqualTo(62, *)              => FAIL
+     * Verifier.verify(*).lessThanOrEqualTo(null, *)              => FAIL
+     * Verifier.verify((Integer) null).lessThanOrEqualTo(*, *)    => FAIL
+     * Verifier.verify((Integer) null).lessThanOrEqualTo(null, *) => PASS
+     * Verifier.verify(123).lessThanOrEqualTo(123, *)             => PASS
+     * Verifier.verify(123).lessThanOrEqualTo(987, *)             => PASS
+     * Verifier.verify(123).lessThanOrEqualTo(62, *)              => FAIL
      * 
* * @param other diff --git a/src/main/java/io/skelp/verifier/type/base/BaseNumberVerifier.java b/src/main/java/io/skelp/verifier/type/base/BaseNumberVerifier.java index af82528..6e9ca71 100644 --- a/src/main/java/io/skelp/verifier/type/base/BaseNumberVerifier.java +++ b/src/main/java/io/skelp/verifier/type/base/BaseNumberVerifier.java @@ -107,11 +107,11 @@ public interface BaseNumberVerifier *
-     * Verifier.verify((Integer) null).even() => FAIL
-     * Verifier.verify(0).even()              => PASS
-     * Verifier.verify(1).even()              => FAIL
-     * Verifier.verify(2).even()              => PASS
-     * Verifier.verify(12).even()             => PASS
+     * Verifier.verify((Integer) null).even() => FAIL
+     * Verifier.verify(0).even()              => PASS
+     * Verifier.verify(1).even()              => FAIL
+     * Verifier.verify(2).even()              => PASS
+     * Verifier.verify(12).even()             => PASS
      * 
* * @return A reference to this {@link BaseNumberVerifier} for chaining purposes. @@ -126,10 +126,10 @@ public interface BaseNumberVerifier *
-     * Verifier.verify((Integer) null).negative() => FAIL
-     * Verifier.verify(0).negative()              => FAIL
-     * Verifier.verify(1).negative()              => FAIL
-     * Verifier.verify(-1).negative()             => PASS
+     * Verifier.verify((Integer) null).negative() => FAIL
+     * Verifier.verify(0).negative()              => FAIL
+     * Verifier.verify(1).negative()              => FAIL
+     * Verifier.verify(-1).negative()             => PASS
      * 
* * @return A reference to this {@link BaseNumberVerifier} for chaining purposes. @@ -144,11 +144,11 @@ public interface BaseNumberVerifier *
-     * Verifier.verify((Integer) null).odd() => FAIL
-     * Verifier.verify(0).odd()              => FAIL
-     * Verifier.verify(1).odd()              => PASS
-     * Verifier.verify(2).odd()              => FAIL
-     * Verifier.verify(13).odd()             => PASS
+     * Verifier.verify((Integer) null).odd() => FAIL
+     * Verifier.verify(0).odd()              => FAIL
+     * Verifier.verify(1).odd()              => PASS
+     * Verifier.verify(2).odd()              => FAIL
+     * Verifier.verify(13).odd()             => PASS
      * 
* * @return A reference to this {@link BaseNumberVerifier} for chaining purposes. @@ -163,11 +163,11 @@ public interface BaseNumberVerifier *
-     * Verifier.verify((Integer) null).one() => FAIL
-     * Verifier.verify(0).one()              => FAIL
-     * Verifier.verify(1).one()              => PASS
-     * Verifier.verify(-1).one()             => FAIL
-     * Verifier.verify(2).one()              => FAIL
+     * Verifier.verify((Integer) null).one() => FAIL
+     * Verifier.verify(0).one()              => FAIL
+     * Verifier.verify(1).one()              => PASS
+     * Verifier.verify(-1).one()             => FAIL
+     * Verifier.verify(2).one()              => FAIL
      * 
* * @return A reference to this {@link BaseNumberVerifier} for chaining purposes. @@ -182,10 +182,10 @@ public interface BaseNumberVerifier *
-     * Verifier.verify((Integer) null).positive() => FAIL
-     * Verifier.verify(0).positive()              => PASS
-     * Verifier.verify(1).positive()              => PASS
-     * Verifier.verify(-1).positive()             => FAIL
+     * Verifier.verify((Integer) null).positive() => FAIL
+     * Verifier.verify(0).positive()              => PASS
+     * Verifier.verify(1).positive()              => PASS
+     * Verifier.verify(-1).positive()             => FAIL
      * 
* * @return A reference to this {@link BaseNumberVerifier} for chaining purposes. @@ -200,10 +200,10 @@ public interface BaseNumberVerifier *
-     * Verifier.verify((Integer) null).zero() => FAIL
-     * Verifier.verify(0).zero()              => PASS
-     * Verifier.verify(1).zero()              => FAIL
-     * Verifier.verify(-1).zero()             => FAIL
+     * Verifier.verify((Integer) null).zero() => FAIL
+     * Verifier.verify(0).zero()              => PASS
+     * Verifier.verify(1).zero()              => FAIL
+     * Verifier.verify(-1).zero()             => FAIL
      * 
* * @return A reference to this {@link BaseNumberVerifier} for chaining purposes. diff --git a/src/main/java/io/skelp/verifier/type/base/BaseSortableCollectionVerifier.java b/src/main/java/io/skelp/verifier/type/base/BaseSortableCollectionVerifier.java index 238be28..2560ccb 100644 --- a/src/main/java/io/skelp/verifier/type/base/BaseSortableCollectionVerifier.java +++ b/src/main/java/io/skelp/verifier/type/base/BaseSortableCollectionVerifier.java @@ -65,13 +65,13 @@ public BaseSortableCollectionVerifier(final Verification verification) { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).sortedBy(null)                                                   => FAIL
-     * Verifier.verify(*).not().sortedBy(null)                                             => FAIL
-     * Verifier.verify((Object[]) null).sortedBy(*)                                        => FAIL
-     * Verifier.verify(new Object[0]).sortedBy(*)                                          => PASS
-     * Verifier.verify(new Object[]{123}).sortedBy(*)                                      => PASS
-     * Verifier.verify(new Object[]{987, 654, 321}).sortedBy((o1, o2) -> o1.compareTo(o2)) => FAIL
-     * Verifier.verify(new Object[]{123, 456, 789}).sortedBy((o1, o2) -> o1.compareTo(o2)) => PASS
+     * Verifier.verify(*).sortedBy(null)                                                      => FAIL
+     * Verifier.verify(*).not().sortedBy(null)                                                => FAIL
+     * Verifier.verify((Object[]) null).sortedBy(*)                                           => FAIL
+     * Verifier.verify(new Object[0]).sortedBy(*)                                             => PASS
+     * Verifier.verify(new Object[]{123}).sortedBy(*)                                         => PASS
+     * Verifier.verify(new Object[]{987, 654, 321}).sortedBy((o1, o2) -> o1.compareTo(o2)) => FAIL
+     * Verifier.verify(new Object[]{123, 456, 789}).sortedBy((o1, o2) -> o1.compareTo(o2)) => PASS
      * 
* * @param comparator @@ -100,13 +100,13 @@ public V sortedBy(final Comparator comparator) throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).sortedBy(null, *)                                                   => FAIL
-     * Verifier.verify(*).not().sortedBy(null, *)                                             => FAIL
-     * Verifier.verify((Object[]) null).sortedBy(*, *)                                        => FAIL
-     * Verifier.verify(new Object[0]).sortedBy(*, *)                                          => PASS
-     * Verifier.verify(new Object[]{123}).sortedBy(*, *)                                      => PASS
-     * Verifier.verify(new Object[]{987, 654, 321}).sortedBy((o1, o2) -> o1.compareTo(o2), *) => FAIL
-     * Verifier.verify(new Object[]{123, 456, 789}).sortedBy((o1, o2) -> o1.compareTo(o2), *) => PASS
+     * Verifier.verify(*).sortedBy(null, *)                                                      => FAIL
+     * Verifier.verify(*).not().sortedBy(null, *)                                                => FAIL
+     * Verifier.verify((Object[]) null).sortedBy(*, *)                                           => FAIL
+     * Verifier.verify(new Object[0]).sortedBy(*, *)                                             => PASS
+     * Verifier.verify(new Object[]{123}).sortedBy(*, *)                                         => PASS
+     * Verifier.verify(new Object[]{987, 654, 321}).sortedBy((o1, o2) -> o1.compareTo(o2), *) => FAIL
+     * Verifier.verify(new Object[]{123, 456, 789}).sortedBy((o1, o2) -> o1.compareTo(o2), *) => PASS
      * 
* * @param comparator diff --git a/src/main/java/io/skelp/verifier/type/base/BaseTimeVerifier.java b/src/main/java/io/skelp/verifier/type/base/BaseTimeVerifier.java index 96c2d8c..fe14a1e 100644 --- a/src/main/java/io/skelp/verifier/type/base/BaseTimeVerifier.java +++ b/src/main/java/io/skelp/verifier/type/base/BaseTimeVerifier.java @@ -61,11 +61,11 @@ public BaseTimeVerifier(final Verification verification) { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).sameDayAs(null)                                                      => FAIL
-     * Verifier.verify((Date) null).sameDayAs(*)                                               => FAIL
-     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameDayAs(parse("31 Aug 2016 13:45:30")) => FAIL
-     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameDayAs(parse("15 Oct 2016 13:45:30")) => FAIL
-     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameDayAs(parse("31 Oct 2016 00:07:02")) => PASS
+     * Verifier.verify(*).sameDayAs(null)                                                      => FAIL
+     * Verifier.verify((Date) null).sameDayAs(*)                                               => FAIL
+     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameDayAs(parse("31 Aug 2016 13:45:30")) => FAIL
+     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameDayAs(parse("15 Oct 2016 13:45:30")) => FAIL
+     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameDayAs(parse("31 Oct 2016 00:07:02")) => PASS
      * 
* * @param other @@ -95,10 +95,10 @@ public V sameDayAs(final T other) throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).sameEraAs(null)                                                            => FAIL
-     * Verifier.verify((Date) null).sameEraAs(*)                                                     => FAIL
-     * Verifier.verify(parse("31 Oct 2016 AD 13:45:30")).sameEraAs(parse("31 Oct 2016 BC 13:45:30")) => FAIL
-     * Verifier.verify(parse("31 Oct 2016 AD 13:45:30")).sameEraAs(parse("15 Aug 2017 AD 00:07:02")) => PASS
+     * Verifier.verify(*).sameEraAs(null)                                                            => FAIL
+     * Verifier.verify((Date) null).sameEraAs(*)                                                     => FAIL
+     * Verifier.verify(parse("31 Oct 2016 AD 13:45:30")).sameEraAs(parse("31 Oct 2016 BC 13:45:30")) => FAIL
+     * Verifier.verify(parse("31 Oct 2016 AD 13:45:30")).sameEraAs(parse("15 Aug 2017 AD 00:07:02")) => PASS
      * 
* * @param other @@ -126,11 +126,11 @@ public V sameEraAs(final T other) throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).sameHourAs(null)                                                      => FAIL
-     * Verifier.verify((Date) null).sameHourAs(*)                                               => FAIL
-     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameHourAs(parse("15 Oct 2016 13:45:30")) => FAIL
-     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameHourAs(parse("31 Oct 2016 00:45:30")) => FAIL
-     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameHourAs(parse("31 Oct 2016 13:15:02")) => PASS
+     * Verifier.verify(*).sameHourAs(null)                                                      => FAIL
+     * Verifier.verify((Date) null).sameHourAs(*)                                               => FAIL
+     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameHourAs(parse("15 Oct 2016 13:45:30")) => FAIL
+     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameHourAs(parse("31 Oct 2016 00:45:30")) => FAIL
+     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameHourAs(parse("31 Oct 2016 13:15:02")) => PASS
      * 
* * @param other @@ -161,11 +161,11 @@ public V sameHourAs(final T other) throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).sameMinuteAs(null)                                                      => FAIL
-     * Verifier.verify((Date) null).sameMinuteAs(*)                                               => FAIL
-     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameMinuteAs(parse("31 Oct 2016 00:45:30")) => FAIL
-     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameMinuteAs(parse("31 Oct 2016 13:15:30")) => FAIL
-     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameMinuteAs(parse("31 Oct 2016 13:45:02")) => PASS
+     * Verifier.verify(*).sameMinuteAs(null)                                                      => FAIL
+     * Verifier.verify((Date) null).sameMinuteAs(*)                                               => FAIL
+     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameMinuteAs(parse("31 Oct 2016 00:45:30")) => FAIL
+     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameMinuteAs(parse("31 Oct 2016 13:15:30")) => FAIL
+     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameMinuteAs(parse("31 Oct 2016 13:45:02")) => PASS
      * 
* * @param other @@ -197,11 +197,11 @@ public V sameMinuteAs(final T other) throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).sameMonthAs(null)                                                      => FAIL
-     * Verifier.verify((Date) null).sameMonthAs(*)                                               => FAIL
-     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameMonthAs(parse("31 Oct 2017 13:45:30")) => FAIL
-     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameMonthAs(parse("31 Aug 2016 13:45:30")) => FAIL
-     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameMonthAs(parse("15 Oct 2016 00:07:02")) => PASS
+     * Verifier.verify(*).sameMonthAs(null)                                                      => FAIL
+     * Verifier.verify((Date) null).sameMonthAs(*)                                               => FAIL
+     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameMonthAs(parse("31 Oct 2017 13:45:30")) => FAIL
+     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameMonthAs(parse("31 Aug 2016 13:45:30")) => FAIL
+     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameMonthAs(parse("15 Oct 2016 00:07:02")) => PASS
      * 
* * @param other @@ -231,11 +231,11 @@ public V sameMonthAs(final T other) throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).sameSecondAs(null)                                                      => FAIL
-     * Verifier.verify((Date) null).sameSecondAs(*)                                               => FAIL
-     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameSecondAs(parse("31 Oct 2016 13:15:30")) => FAIL
-     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameSecondAs(parse("31 Oct 2016 13:45:02")) => FAIL
-     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameSecondAs(parse("31 Oct 2016 13:45:30")) => PASS
+     * Verifier.verify(*).sameSecondAs(null)                                                      => FAIL
+     * Verifier.verify((Date) null).sameSecondAs(*)                                               => FAIL
+     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameSecondAs(parse("31 Oct 2016 13:15:30")) => FAIL
+     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameSecondAs(parse("31 Oct 2016 13:45:02")) => FAIL
+     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameSecondAs(parse("31 Oct 2016 13:45:30")) => PASS
      * 
* * @param other @@ -268,11 +268,11 @@ public V sameSecondAs(final T other) throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).sameTimeAs(null)                                                              => FAIL
-     * Verifier.verify((Date) null).sameTimeAs(*)                                                       => FAIL
-     * Verifier.verify(parse("31 Oct 2016 13:45:30.123")).sameTimeAs(parse("31 Oct 2016 13:45:15.123")) => FAIL
-     * Verifier.verify(parse("31 Oct 2016 13:45:30.123")).sameTimeAs(parse("31 Oct 2016 13:45:30.789")) => FAIL
-     * Verifier.verify(parse("31 Oct 2016 13:45:30.123")).sameTimeAs(parse("31 Oct 2016 13:45:30.123")) => PASS
+     * Verifier.verify(*).sameTimeAs(null)                                                              => FAIL
+     * Verifier.verify((Date) null).sameTimeAs(*)                                                       => FAIL
+     * Verifier.verify(parse("31 Oct 2016 13:45:30.123")).sameTimeAs(parse("31 Oct 2016 13:45:15.123")) => FAIL
+     * Verifier.verify(parse("31 Oct 2016 13:45:30.123")).sameTimeAs(parse("31 Oct 2016 13:45:30.789")) => FAIL
+     * Verifier.verify(parse("31 Oct 2016 13:45:30.123")).sameTimeAs(parse("31 Oct 2016 13:45:30.123")) => PASS
      * 
* * @param other @@ -300,11 +300,11 @@ public V sameTimeAs(final T other) throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).sameWeekAs(null)                                                      => FAIL
-     * Verifier.verify((Date) null).sameWeekAs(*)                                               => FAIL
-     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameWeekAs(parse("31 Oct 2017 13:45:30")) => FAIL
-     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameWeekAs(parse("15 Oct 2016 13:45:30")) => FAIL
-     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameWeekAs(parse("1 Nov 2016 00:07:02"))  => PASS
+     * Verifier.verify(*).sameWeekAs(null)                                                      => FAIL
+     * Verifier.verify((Date) null).sameWeekAs(*)                                               => FAIL
+     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameWeekAs(parse("31 Oct 2017 13:45:30")) => FAIL
+     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameWeekAs(parse("15 Oct 2016 13:45:30")) => FAIL
+     * Verifier.verify(parse("31 Oct 2016 13:45:30")).sameWeekAs(parse("1 Nov 2016 00:07:02"))  => PASS
      * 
* * @param other @@ -334,11 +334,11 @@ public V sameWeekAs(final T other) throws VerifierException { * {@literal null} references are handled gracefully without exceptions. *

*
-     * Verifier.verify(*).sameYearAs(null)                                                            => FAIL
-     * Verifier.verify((Date) null).sameYearAs(*)                                                     => FAIL
-     * Verifier.verify(parse("31 Oct 2016 AD 13:45:30")).sameYearAs(parse("31 Oct 2016 BC 13:45:30")) => FAIL
-     * Verifier.verify(parse("31 Oct 2016 AD 13:45:30")).sameYearAs(parse("31 Oct 2017 AD 13:45:30")) => FAIL
-     * Verifier.verify(parse("31 Oct 2016 AD 13:45:30")).sameYearAs(parse("15 Aug 2016 AD 00:07:02")) => PASS
+     * Verifier.verify(*).sameYearAs(null)                                                            => FAIL
+     * Verifier.verify((Date) null).sameYearAs(*)                                                     => FAIL
+     * Verifier.verify(parse("31 Oct 2016 AD 13:45:30")).sameYearAs(parse("31 Oct 2016 BC 13:45:30")) => FAIL
+     * Verifier.verify(parse("31 Oct 2016 AD 13:45:30")).sameYearAs(parse("31 Oct 2017 AD 13:45:30")) => FAIL
+     * Verifier.verify(parse("31 Oct 2016 AD 13:45:30")).sameYearAs(parse("15 Aug 2016 AD 00:07:02")) => PASS
      * 
* * @param other diff --git a/src/main/java/io/skelp/verifier/type/base/BaseTruthVerifier.java b/src/main/java/io/skelp/verifier/type/base/BaseTruthVerifier.java index 5206e4b..d97ba19 100644 --- a/src/main/java/io/skelp/verifier/type/base/BaseTruthVerifier.java +++ b/src/main/java/io/skelp/verifier/type/base/BaseTruthVerifier.java @@ -74,9 +74,9 @@ public interface BaseTruthVerifier> extends * {@literal null} value is always considered to be falsy. *

*
-     * Verifier.verify((Boolean) null).falsy() => PASS
-     * Verifier.verify(false).falsy()          => PASS
-     * Verifier.verify(true).falsy()           => FAIL
+     * Verifier.verify((Boolean) null).falsy() => PASS
+     * Verifier.verify(false).falsy()          => PASS
+     * Verifier.verify(true).falsy()           => FAIL
      * 
* * @return A reference to this {@link BaseTruthVerifier} for chaining purposes. @@ -96,9 +96,9 @@ public interface BaseTruthVerifier> extends * {@literal null} value is never considered to be truthy. *

*
-     * Verifier.verify((Boolean) null).truthy() => FAIL
-     * Verifier.verify(false).truthy()          => FAIL
-     * Verifier.verify(true).truthy()           => PASS
+     * Verifier.verify((Boolean) null).truthy() => FAIL
+     * Verifier.verify(false).truthy()          => FAIL
+     * Verifier.verify(true).truthy()           => PASS
      * 
* * @return A reference to this {@link BaseTruthVerifier} for chaining purposes. From e4401fe96ccd7f669ac6b0fac10eadc6fd83e636 Mon Sep 17 00:00:00 2001 From: Alasdair Mercer Date: Mon, 14 Nov 2016 22:45:48 +0000 Subject: [PATCH 2/2] moved release plugins to profile to avoid breaking build on CI --- pom.xml | 112 ++++++++++++++++++++++++++++++-------------------------- 1 file changed, 61 insertions(+), 51 deletions(-) diff --git a/pom.xml b/pom.xml index 33e6789..a5125d6 100644 --- a/pom.xml +++ b/pom.xml @@ -102,20 +102,6 @@ - - org.apache.maven.plugins - maven-gpg-plugin - 1.6 - - - sign-artifacts - verify - - sign - - - - org.apache.maven.plugins maven-jar-plugin @@ -129,32 +115,6 @@ - - org.apache.maven.plugins - maven-javadoc-plugin - 2.10.4 - - - attach-javadocs - - jar - - - - - - org.apache.maven.plugins - maven-source-plugin - 3.0.1 - - - attach-sources - - jar-no-fork - - - - org.apache.maven.plugins maven-surefire-plugin @@ -235,17 +195,67 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.7 - true - - ossrh - https://oss.sonatype.org/ - true - - + + + + release + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + + + sign-artifacts + verify + + sign + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.10.4 + + + attach-javadocs + + jar + + + + + + org.apache.maven.plugins + maven-source-plugin + 3.0.1 + + + attach-sources + + jar-no-fork + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + ossrh + https://oss.sonatype.org/ + true + + + + + +