Example usage for java.lang Boolean TRUE

List of usage examples for java.lang Boolean TRUE

Introduction

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

Prototype

Boolean TRUE

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

Click Source Link

Document

The Boolean object corresponding to the primitive value true .

Usage

From source file:com.pureinfo.srm.view.function.ShowDupTagCheckBoxFunctionHandler.java

public Object perform(Object[] _args, IDVContext _context) throws PureException {
    Object[] arrObj = new Object[2];
    String sFormal = (String) _args[0];

    System.out.println("<<<<<<<<<<<<<<<<<<<<<" + sFormal);
    IProductMgr mgr = (IProductMgr) ArkContentHelper.getContentMgrOf(SRMTypes.PRODUCT);
    boolean isFormal = StringUtils.isNotEmpty(sFormal)
            ? (sFormal.equalsIgnoreCase("true") ? Boolean.TRUE.booleanValue() : Boolean.FALSE.booleanValue())
            : false;//  www  .j a v a 2  s. c o  m
    System.out.println(">>>>>>>>>>>>>>>>>>>>>" + isFormal);
    arrObj = mgr.renderTableOfDupTagCheckBox(isFormal);

    return arrObj[0].toString();
}

From source file:com.chiralbehaviors.CoRE.Ruleform.java

public static Boolean toBoolean(Integer value) {
    if (value == null) {
        return null;
    }//from  w w w . j  a v  a 2s  . co m
    return value.equals(Integer.valueOf(0)) ? Boolean.FALSE : Boolean.TRUE;
}

From source file:livhuwani.rambuda.policy_app.services.Impl.PolicyQuoteCrudServiceImpl.java

@Override
public PolicyQuote createPolicyQuotes(Person person, Policy policy) {
    PolicyQuote quote = new PolicyQuote();
    quote.setId(Long.MAX_VALUE + 1);
    quote.setPerson(person);//w w  w  .  j ava  2s  . c  o m
    quote.setPolicy(policy);
    quote.setQuoteAmount(BigDecimal.valueOf(3200));
    quote.setQuoteStatus(Boolean.TRUE);
    quote.setQuoteDate(DateTime.now());

    PolicyQuote savedQuote = policyQuoteRepository.saveAndFlush(quote);
    return savedQuote;
}

From source file:br.com.sicoob.cro.cop.batch.step.tasklet.TaskletExecutor.java

public Boolean call() throws Exception {
    Result result = Result.SUCCESS;
    StepExecutorHelper.beforeStep(this.step);
    try {/*from  w  ww. jav a2s .c o m*/
        execute();
    } catch (Exception excecao) {
        result = Result.FAIL;
        LOG.error(excecao);
        this.step.getJob().setStatus(Job.Status.FAIL);
    } finally {
        StepExecutorHelper.afterStep(this.step, result);
    }
    return Boolean.TRUE;
}

From source file:controllers.MetaController.java

private static boolean isHealthy() {
    // TODO(vkoskela): Deep health check when features warrant it [MAI-83].
    return Boolean.TRUE;
}

From source file:GUIUtils.java

/**
 * Return <TT>true</TT> if <TT>frame</TT> is a tool window. I.E. is the
 * <TT>JInternalFrame.isPalette</TT> set to <TT>Boolean.TRUE</TT>?
 * /*from   ww w. ja  v  a  2 s. c o  m*/
 * @param frame
 *          The <TT>JInternalFrame</TT> to be checked.
 * 
 * @throws IllegalArgumentException
 *           If <TT>frame</TT> is <TT>null</TT>.
 */
public static boolean isToolWindow(JInternalFrame frame) {
    if (frame == null) {
        throw new IllegalArgumentException("null JInternalFrame passed");
    }

    final Object obj = frame.getClientProperty("JInternalFrame.isPalette");
    return obj != null && obj == Boolean.TRUE;
}

From source file:net.di2e.ecdr.commons.query.cache.QueryRequestCache.java

public boolean isQueryIdUnique(String id) {
    boolean unique = true;
    if (StringUtils.isNotBlank(id)) {
        if (cache.containsKey(id)) {
            unique = false;/*from   w w  w. j ava 2s .  c  o m*/
        } else {
            cache.put(id, Boolean.TRUE);
        }
    }
    return unique;
}

From source file:com.dajodi.scandic.ScandicSessionHelper.java

/**
 * Determines if the logged in cookie exists.  If this is the case, there's no
 * need to re-login.//from   ww  w  .  j a v a 2  s .c om
 *
 * @return
 */
public static boolean isLoggedIn() {
    DefaultHttpClient client = Singleton.INSTANCE.getHttpClient();
    boolean loggedIn = false;
    for (Cookie cookie : ((AbstractHttpClient) client).getCookieStore().getCookies()) {
        if (LOGGED_IN_COOKIE_NAME.equals(cookie.getName())
                && Boolean.TRUE.toString().equalsIgnoreCase(cookie.getValue())) {
            loggedIn = true;
            break;
        }
    }
    return loggedIn;
}

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

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

    try {//from   w ww  .  j  a  v  a2s.co  m
        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:de.axelfaust.alfresco.nashorn.repo.web.scripts.RepositoryNashornScriptProcessor.java

/**
 * Checks if the current thread is currently part of a web script request.
 *
 * @return {@code true} if the current thread is processing a web script request, {@code false} otherwise
 *///from   w w  w.  ja  v a2  s  .  co  m
public static boolean isInWebScriptCall() {
    final Boolean inWebScriptCall = IN_WEBSCRIPT_CALL.get();
    return Boolean.TRUE.equals(inWebScriptCall);
}