protected static void validateInteger ( String opName , SDVariable v ) { if ( v == null ) return ; if ( ! v . dataType ( ) . isIntType ( ) ) throw new IllegalStateException ( "Cannot apply operation \"" + opName + "\" to variable \"" + v . getVarName ( ) + "\" with non-integer data type " + v . dataType ( ) ) ; }
Validate that the operation is being applied on an integer type SDVariable