protected void typeCheck ( GeoPackageDataType expected , TColumn column ) { GeoPackageDataType actual = column . getDataType ( ) ; if ( actual == null || ! actual . equals ( expected ) ) { throw new GeoPackageException ( "Unexpected " + column . getName ( ) + " column data type was found for table '" + tableName + "', expected: " + expected . name ( ) + ", actual: " + ( actual != null ? actual . name ( ) : "null" ) ) ; } }
Check for the expected data type