@@ -37,7 +37,7 @@ private BytesValidators() {
3737 * Checks the length of a byte array
3838 *
3939 * @param byteLength to check against
40- * @return true if longer or equal to given value
40+ * @return validator that returns true if longer or equal to given value
4141 */
4242 public static BytesValidator atLeast (int byteLength ) {
4343 return new BytesValidator .Length (byteLength , BytesValidator .Length .Mode .GREATER_OR_EQ_THAN );
@@ -47,7 +47,7 @@ public static BytesValidator atLeast(int byteLength) {
4747 * Checks the length of a byte array
4848 *
4949 * @param byteLength to check against
50- * @return true if smaller or equal to given value
50+ * @return validator that returns true if smaller or equal to given value
5151 */
5252 public static BytesValidator atMost (int byteLength ) {
5353 return new BytesValidator .Length (byteLength , BytesValidator .Length .Mode .SMALLER_OR_EQ_THAN );
@@ -57,7 +57,7 @@ public static BytesValidator atMost(int byteLength) {
5757 * Checks the length of a byte array
5858 *
5959 * @param byteLength to check against
60- * @return true if equal to given value
60+ * @return validator that returns true if equal to given value
6161 */
6262 public static BytesValidator exactLength (int byteLength ) {
6363 return new BytesValidator .Length (byteLength , BytesValidator .Length .Mode .EXACT );
@@ -67,7 +67,7 @@ public static BytesValidator exactLength(int byteLength) {
6767 * Checks individual byte content
6868 *
6969 * @param refByte to check against
70- * @return true if array only consists of refByte
70+ * @return validator that returns true if array only consists of refByte
7171 */
7272 public static BytesValidator onlyOf (byte refByte ) {
7373 return new BytesValidator .IdenticalContent (refByte , BytesValidator .IdenticalContent .Mode .ONLY_OF );
@@ -77,7 +77,7 @@ public static BytesValidator onlyOf(byte refByte) {
7777 * Checks individual byte content
7878 *
7979 * @param refByte to check against
80- * @return true if array has at least one byte that is not refByte
80+ * @return validator that returns true if array has at least one byte that is not refByte
8181 */
8282 public static BytesValidator notOnlyOf (byte refByte ) {
8383 return new BytesValidator .IdenticalContent (refByte , BytesValidator .IdenticalContent .Mode .NOT_ONLY_OF );
@@ -87,7 +87,7 @@ public static BytesValidator notOnlyOf(byte refByte) {
8787 * Checks if the internal byte array starts with given bytes
8888 *
8989 * @param startsWithBytes the supposed prefix
90- * @return true all startsWithBytes match the first bytes in the internal array
90+ * @return validator that returns true all startsWithBytes match the first bytes in the internal array
9191 */
9292 public static BytesValidator startsWith (byte ... startsWithBytes ) {
9393 return new BytesValidator .PrePostFix (true , startsWithBytes );
@@ -97,7 +97,7 @@ public static BytesValidator startsWith(byte... startsWithBytes) {
9797 * Checks if the internal byte array ends with given bytes
9898 *
9999 * @param endsWithBytes the supposed postfix
100- * @return true all startsWithBytes match the first bytes in the internal array
100+ * @return validator that returns true all startsWithBytes match the first bytes in the internal array
101101 */
102102 public static BytesValidator endsWith (byte ... endsWithBytes ) {
103103 return new BytesValidator .PrePostFix (false , endsWithBytes );
@@ -107,7 +107,7 @@ public static BytesValidator endsWith(byte... endsWithBytes) {
107107 * Checks individual byte content
108108 *
109109 * @param refByte to check against
110- * @return true if array has no value refByte
110+ * @return validator that returns true if array has no value refByte
111111 */
112112 public static BytesValidator noneOf (byte refByte ) {
113113 return new BytesValidator .IdenticalContent (refByte , BytesValidator .IdenticalContent .Mode .NONE_OF );
@@ -117,7 +117,7 @@ public static BytesValidator noneOf(byte refByte) {
117117 * This will execute all passed validators and returns true if at least one returns true (i.e. OR concatenation)
118118 *
119119 * @param validators at least one validator must be passed
120- * @return true if at least one validator returns true
120+ * @return validator that returns true if at least one validator returns true
121121 */
122122 public static BytesValidator or (BytesValidator ... validators ) {
123123 return new BytesValidator .Logical (Arrays .asList (validators ), BytesValidator .Logical .Operator .OR );
@@ -127,7 +127,7 @@ public static BytesValidator or(BytesValidator... validators) {
127127 * This will execute all passed validators and returns true if all return true (i.e. AND concatenation)
128128 *
129129 * @param validators at least one validator must be passed
130- * @return true if all return true
130+ * @return validator that returns true if all return true
131131 */
132132 public static BytesValidator and (BytesValidator ... validators ) {
133133 return new BytesValidator .Logical (Arrays .asList (validators ), BytesValidator .Logical .Operator .AND );
0 commit comments