/** returns a boolean array of the same langth as the receiver with <code>true</code> for <code>TRUE</code> values and <code>false</code> for <code>FALSE</code> and <code>NA</code> values. @return boolean array @deprecated replaced by {@link #isTRUE()} for consistency with R nomenclature. */ public boolean[] isTrue() { return isTRUE(); }
/** returns a boolean array of the same langth as the receiver with <code>true</code> for <code>TRUE</code> values and <code>false</code> for <code>FALSE</code> and <code>NA</code> values. @return boolean array @deprecated replaced by {@link #isTRUE()} for consistency with R nomenclature. */ public boolean[] isTrue() { return isTRUE(); }
private static void setForecastModuleAvailableAndLoadedFlag(final Object forecastPackageLoadResult) { if ((forecastPackageLoadResult != null) && (forecastPackageLoadResult instanceof REXPLogical)) { final REXPLogical returnValue = (REXPLogical) forecastPackageLoadResult; final boolean hasAttr = returnValue.hasAttribute("attr"); final boolean[] isTrue = returnValue.isTRUE(); if (!hasAttr && (isTrue.length > 0) && isTrue[0]) { forecastPackageAvailable = true; return; } } forecastPackageAvailable = false; }
private static void setForecastModuleAvailableAndLoadedFlag(final Object forecastPackageLoadResult) { if ((forecastPackageLoadResult != null) && (forecastPackageLoadResult instanceof REXPLogical)) { final REXPLogical returnValue = (REXPLogical) forecastPackageLoadResult; final boolean hasAttr = returnValue.hasAttribute("attr"); final boolean[] isTrue = returnValue.isTRUE(); if (!hasAttr && (isTrue.length > 0) && isTrue[0]) { forecastPackageAvailable = true; return; } } forecastPackageAvailable = false; }
return (new Double(logical.isTRUE()[0] ? 1.0 : 0.0)); for (boolean b : logical.isTRUE()) { doubleResult.add(new Double(b ? 1.0 : 0.0)); return (new Integer(logical.isTRUE()[0] ? 1 : 0)); for (boolean b : logical.isTRUE()) { integerResult.add(new Integer(b ? 1 : 0)); return (Arrays.toString(logical.isTRUE())); for (boolean b : logical.isTRUE()) { stringResult.add(b ? "true" : "false");