Esempio n. 1
0
 @Override
 public int getElementAsInt(int index) {
   if (isElementNA(index)) {
     return IntVector.NA;
   } else {
     String value = getElementAsString(index);
     double doubleValue = NumericLiterals.parseDouble(value, 0, value.length(), '.', true);
     if (DoubleVector.isFinite(doubleValue)) {
       return (int) doubleValue;
     } else {
       return IntVector.NA;
     }
   }
 }