Example usage for java.lang Boolean FALSE

List of usage examples for java.lang Boolean FALSE

Introduction

In this page you can find the example usage for java.lang Boolean FALSE.

Prototype

Boolean FALSE

To view the source code for java.lang Boolean FALSE.

Click Source Link

Document

The Boolean object corresponding to the primitive value false .

Usage

From source file:Main.java

/**
 * Returns the object equivalent of the boolean primitive.
 * <p>/*from w w  w.j av a2s .c om*/
 * A similar method is provided by the Boolean class in JDK 1.4, but you can use this one
 * to remain compatible with earlier JDKs.
 * 
 * @param b  the boolean value.
 * 
 * @return <code>Boolean.TRUE</code> or <code>Boolean.FALSE</code>.
 */
public static Boolean valueOf(final boolean b) {
    return (b ? Boolean.TRUE : Boolean.FALSE);
}

From source file:edu.emory.cci.aiw.i2b2etl.dest.metadata.conceptid.ModifierConceptId.java

/**
 * Returns a concept propId with the given proposition propId and property
 * name and value. It searches the concept id cache for an existing concept
 * id with the same propId, property name and value. Next, it searches the
 * concept id cache for an existing concept id with the same propId and
 * property name. Then, if none is found, it creates a new one.
 *
 * @param propId a proposition propId {@link String}. Cannot be
 * <code>null</code>./*w  w  w  .ja  v  a2  s.  co m*/
 * @param propertyName a property name {@link String}.
 * @return a {@link PropDefConceptId}.
 */
public static ModifierConceptId getInstance(String propId, String propertyName, Value value,
        Metadata metadata) {
    List<Object> key = new ArrayList<>(4);
    key.add(propId);
    key.add(propertyName);
    key.add(value);
    key.add(Boolean.FALSE); //distinguishes these from properties represented as a concept.
    ModifierConceptId conceptId = (ModifierConceptId) metadata.getFromConceptIdCache(key);
    if (conceptId == null) {
        conceptId = new ModifierConceptId(propId, propertyName, value, metadata);
        metadata.putInConceptIdCache(key, conceptId);
    }
    return conceptId;
}

From source file:com.pureinfo.srm.product.action.Product3IndexDuplicateListAction.java

public ActionForward beforeExecution() throws PureException {
    if ("ok".equalsIgnoreCase(request.getString("dup", true))) {
        request.setAttribute("isDup", Boolean.TRUE);
    } else {/*from   w w  w. j a v a2 s  . co m*/
        request.setAttribute("isDup", Boolean.FALSE);
    }
    return null;
}

From source file:fr.aliasource.webmail.server.proxy.client.http.DispositionNotificationMethod.java

public void denyDispositionNotification(MessageId messageId) {
    Map<String, String> params = new HashMap<String, String>();
    params.put("token", token);
    params.put("accept", Boolean.FALSE.toString());
    params.put("messageId", String.valueOf(messageId.getMessageId()));
    executeVoid(params);//  w  w  w . ja  v a  2  s .  co m
}

From source file:com.ocs.dynamo.importer.impl.BaseTextImporter.java

/**
 * Extracts a boolean value//from   ww  w . j  av  a 2s  .  c  o  m
 * 
 * @param unit
 * @return
 */
protected Boolean getBooleanValue(String unit) {
    String value = unit;
    if (StringUtils.isEmpty(value)) {
        return Boolean.FALSE;
    }
    return Boolean.valueOf(value);
}

From source file:com.github.sebhoss.contract.verifier.SpELContractContext.java

@Override
public boolean isInViolationWith(final Clause clause) {
    final Expression expression = parser.parseExpression(clause.value());

    return Boolean.FALSE.equals(expression.getValue(context, Boolean.class));
}

From source file:com.sirti.microservice.hbase.service.UnicoStoricoService.java

public UnicoStoricoResultSet findAll() {
    UnicoStoricoResultSet hkpiresultset = new UnicoStoricoResultSet();

    try {//w ww. ja  v a 2 s. com
        long starttime = System.nanoTime();
        List<UnicoStorico> hkpilist = unicoStoricoDao.findAll();
        long endtime = System.nanoTime();
        hkpiresultset.setList(hkpilist);
        hkpiresultset.setDuration((endtime - starttime) / 1000000);
        hkpiresultset.setError(Boolean.FALSE);
    } catch (Exception e) {
        hkpiresultset.setError(Boolean.TRUE);
        hkpiresultset.setErrorMsg(e.getLocalizedMessage());
    }
    return hkpiresultset;
}

From source file:com.uimirror.core.framework.rest.util.WebUtil.java

/**
 * <p>This will test if the provided string is a valid url or not</p>
 * Check Out <code> {@link WebUtil#getUrl(String)}</code> for the url checking rules
 * @param spec url which will be parsed// w  ww  . j  a v a  2 s . c o  m
 * @return <code>true</code> if the string is a valid url else <code>false</code>
 */
public static boolean isValidUrl(String spec) {
    try {
        getUrl(spec);
        return Boolean.TRUE;
    } catch (IllegalArgumentException e) {
        return Boolean.FALSE;
    }
}

From source file:com.moviejukebox.plugin.AllocinePluginTest.java

@BeforeClass
public static void configure() {
    doConfiguration();/*from  w  w  w. j  a  v a 2s  .  c  o  m*/
    loadApiProperties();
    PropertiesUtil.setProperty("mjb.internet.plugin", "com.moviejukebox.plugin.AllocinePlugin");
    PropertiesUtil.setProperty("mjb.internet.tv.plugin", "com.moviejukebox.plugin.AllocinePlugin");
    PropertiesUtil.setProperty("mjb.includeEpisodePlots", Boolean.TRUE);
    PropertiesUtil.setProperty("mjb.includeVideoImages", Boolean.FALSE);
    PropertiesUtil.setProperty("fanart.tv.download", Boolean.FALSE);
}

From source file:br.com.smom.main.datasource.core.config.PostgreSQLConfig.java

public PostgreSQLConfig() {
    basicDataSource.setDriverClassName("org.postgresql.Driver");
    basicDataSource.setUrl("jdbc:postgresql://localhost:5432/smom");
    basicDataSource.setUsername("postgres");
    basicDataSource.setPassword("Pa$$w0rd");
    basicDataSource.setDefaultAutoCommit(Boolean.FALSE);
    basicDataSource.setInitialSize(5);/*  w w  w.ja va 2  s .  c  om*/
}