public interface IObjectEnumOutsideCheck extends ICheck
Modifier and Type | Method and Description |
---|---|
<T extends Enum<T>> |
isEnumOutside(Object caller,
T referenceA,
T referenceMin,
T referenceMax)
Checks if references are not nulls and A is outside [min;max].
|
<T extends Enum<T>> boolean isEnumOutside(Object caller, T referenceA, T referenceMin, T referenceMax)
[min;max] and [max;min] is considered the same number range.
caller
- end-user instance initiating the checkreferenceA
- reference to check against number rangereferenceMin
- reference to start of number rangereferenceMax
- reference to end of number rangeIllegalArgumentException
- if caller is nullThe MIT License (MIT) - Copyright © 2014-2015 Keld Oelykke. All Rights Reserved.