Modifier and Type | Class and Description |
---|---|
static class |
BytesValidator.IdenticalContent
Checks if a byte array contains only the same value
|
static class |
BytesValidator.Length
Validates for specific array length
|
static class |
BytesValidator.Logical
Logical operations over multiple validators
|
static class |
BytesValidator.PrePostFix
Checks if arrays end or start with given array
|
Modifier and Type | Method and Description |
---|---|
static BytesValidator |
BytesValidators.and(BytesValidator... validators)
This will execute all passed validators and returns true if all return true (i.e.
|
static BytesValidator |
BytesValidators.atLeast(int byteLength)
Checks the length of a byte array
|
static BytesValidator |
BytesValidators.atMost(int byteLength)
Checks the length of a byte array
|
static BytesValidator |
BytesValidators.endsWith(byte... endsWithBytes)
Checks if the internal byte array ends with given bytes
|
static BytesValidator |
BytesValidators.exactLength(int byteLength)
Checks the length of a byte array
|
static BytesValidator |
BytesValidators.noneOf(byte refByte)
Checks individual byte content
|
static BytesValidator |
BytesValidators.not(BytesValidator validator)
This will negate the result of the passed validator
|
static BytesValidator |
BytesValidators.notOnlyOf(byte refByte)
Checks individual byte content
|
static BytesValidator |
BytesValidators.onlyOf(byte refByte)
Checks individual byte content
|
static BytesValidator |
BytesValidators.or(BytesValidator... validators)
This will execute all passed validators and returns true if at least one returns true (i.e.
|
static BytesValidator |
BytesValidators.startsWith(byte... startsWithBytes)
Checks if the internal byte array starts with given bytes
|
Modifier and Type | Method and Description |
---|---|
static BytesValidator |
BytesValidators.and(BytesValidator... validators)
This will execute all passed validators and returns true if all return true (i.e.
|
static BytesValidator |
BytesValidators.not(BytesValidator validator)
This will negate the result of the passed validator
|
static BytesValidator |
BytesValidators.or(BytesValidator... validators)
This will execute all passed validators and returns true if at least one returns true (i.e.
|
boolean |
Bytes.validate(BytesValidator... bytesValidators)
Applies all given validators and returns true if all of them return true (default AND concatenation).
|
Constructor and Description |
---|
Logical(List<BytesValidator> validatorList,
at.favre.lib.bytes.BytesValidator.Logical.Operator operator) |
Copyright © 2017–2018. All rights reserved.