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:rmblworx.tools.timey.AlarmTest.java

private Boolean assertThatTimestampIsPresent(final List<AlarmDescriptor> list,
        final AlarmDescriptor expectedDescriptor) {
    Boolean result = Boolean.FALSE;
    for (AlarmDescriptor timeDescr : list) {
        if (timeDescr.getAlarmtime().getMilliSeconds() == expectedDescriptor.getAlarmtime().getMilliSeconds()) {
            result = Boolean.TRUE;
            break;
        }/*ww w. j a v  a 2s . co m*/
    }
    return result;
}

From source file:com.oneops.cms.ws.ecv.AppHealthCheck.java

@Override
public IHealth getHealth() {
    IHealth health = Health.FAILED_HEALTH;
    try {/* w w w . j  a  va  2  s . c o  m*/
        CmsClazz clazz = mdManager.getClazz(DEFAULT_CID);
        health = Health.OK_HEALTH;
    } catch (Throwable e) {
        logger.error("Exception occurred determining health", e);
        health = new Health(HttpStatus.INTERNAL_SERVER_ERROR.value(), Boolean.FALSE, e.getMessage(), getName());
    }
    return health;
}

From source file:com.inkubator.hrm.web.personalia.SystemScoringIndexFormController.java

@PostConstruct
@Override/*from www  . j  a v a  2 s. co m*/
public void initialization() {
    super.initialization();
    try {
        String systemScoringId = FacesUtil.getRequestParameter("systemScoringId");
        String systemScoringIndexId = FacesUtil.getRequestParameter("systemScoringIndexId");
        model = new SystemScoringIndexModel();
        isUpdate = Boolean.FALSE;
        if (StringUtils.isNotEmpty(systemScoringIndexId)) {
            SystemScoringIndex systemScoringIndex = systemScoringIndexService
                    .getEntiyByPK(Long.parseLong(systemScoringIndexId));
            if (systemScoringIndex != null) {
                model = getModelFromEntity(systemScoringIndex);
                isUpdate = Boolean.TRUE;
            }
        }
        model.setSystemScoringId(Long.valueOf(systemScoringId));
    } catch (Exception e) {
        LOGGER.error("Error", e);
    }
}

From source file:com.hiperium.web.common.dto.PopupMessageDTO.java

/**
 * //from w ww.j a  v a2s. c o  m
 * @return
 */
public Boolean isEmpty() {
    Boolean res = Boolean.FALSE;
    if (this.severity.equals(FacesMessage.SEVERITY_FATAL)) {
        res = Boolean.TRUE;
    }
    return res;
}

From source file:br.com.joaops.smt.configuration.MyConnectionProviderImpl.java

@Override
public boolean isUnwrappableAs(Class type) {
    return Boolean.FALSE;
}

From source file:com.tapas.evidence.repository.TeacherRepositoryImpl.java

@Override
@SuppressWarnings("unchecked")
public List<Teacher> findAll() {
    final Long tenantId = ((EvidenceUserDetails) SecurityContextHolder.getContext().getAuthentication()
            .getPrincipal()).getTenantId();
    Query query = this.entityManager.createNamedQuery(Teacher.QUERY_NAME_FIND_ALL_BY_DELETED_FLAG);
    query.setParameter("deleted", Boolean.FALSE);
    query.setParameter("tenantId", tenantId);
    return query.getResultList();
}

From source file:com.quancheng.saluki.core.grpc.client.GrpcClientStrategy.java

private GrpcProtocolClient<Object> buildProtoClient(GrpcURL refUrl) {
    boolean isGeneric = refUrl.getParameter(Constants.GENERIC_KEY, Boolean.FALSE);
    boolean isGrpcStub = refUrl.getParameter(Constants.GRPC_STUB_KEY, Boolean.FALSE);
    if (isGeneric) {
        String[] methodNames = StringUtils.split(refUrl.getParameter(Constants.METHODS_KEY), ",");
        int retries = refUrl.getParameter((Constants.METHOD_RETRY_KEY), 0);
        Map<String, Integer> methodRetries = cacheRetries(methodNames, retries);
        return new GenericProxyClient<Object>(methodRetries, refUrl);
    } else {/*from   w w w. java  2  s.c o  m*/
        if (isGrpcStub) {
            String stubClassName = refUrl.getParameter(Constants.INTERFACECLASS_KEY);
            try {
                @SuppressWarnings({ "rawtypes", "unchecked" })
                Class<? extends AbstractStub> stubClass = (Class<? extends AbstractStub>) ReflectUtils
                        .name2class(stubClassName);
                return new GrpcStubClient<Object>(stubClass);
            } catch (ClassNotFoundException e) {
                throw new IllegalArgumentException("grpc stub client the class must exist in classpath", e);
            }
        } else {
            String[] methodNames = StringUtils.split(refUrl.getParameter(Constants.METHODS_KEY), ",");
            int retries = refUrl.getParameter((Constants.METHOD_RETRY_KEY), 0);
            String interfaceName = refUrl.getServiceInterface();
            Map<String, Integer> methodRetries = cacheRetries(methodNames, retries);
            return new DefaultProxyClient<Object>(interfaceName, methodRetries, refUrl);
        }
    }
}

From source file:com.gnip.test.YouTubeEDCSerDeTest.java

@Test
public void Tests() throws Exception {
    mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, Boolean.FALSE);
    mapper.configure(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY, Boolean.TRUE);
    mapper.configure(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT, Boolean.TRUE);

    InputStream is = YouTubeEDCSerDeTest.class.getResourceAsStream("/YoutubeEDC.xml");
    if (is == null)
        System.out.println("null");
    InputStreamReader isr = new InputStreamReader(is);
    BufferedReader br = new BufferedReader(isr);
    XmlMapper xmlMapper = new XmlMapper();
    xmlMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, Boolean.FALSE);
    xmlMapper.configure(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY, Boolean.TRUE);
    xmlMapper.configure(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT, Boolean.TRUE);

    ObjectMapper jsonMapper = new ObjectMapper();

    try {/*from www. ja v  a2 s .  c  o  m*/
        while (br.ready()) {
            String line = br.readLine();
            //LOGGER.debug(line);

            Object activityObject = xmlMapper.readValue(line, Object.class);

            String jsonObject = jsonMapper.writeValueAsString(activityObject);

            //LOGGER.debug(jsonObject);
        }
    } catch (Exception e) {
        e.printStackTrace();
        Assert.fail();
    }
}

From source file:mx.org.ift.sns.encryptor.Encryptor.java

public Boolean executeProcess(String fileName) {
    Boolean resp = Boolean.TRUE;
    try {/*from   ww w .j av  a2  s .c o m*/

        readCsvFile(fileName);
        encryptPassword(userPassMap);
        printPasswordEncryptor();

    } catch (Exception e) {
        e.printStackTrace();
        resp = Boolean.FALSE;
    }
    return resp;

}

From source file:ch.ralscha.extdirectspring.bean.ExtDirectFormPostResultTest.java

@Test
public void testExtDirectFormPostResultBoolean() {
    ExtDirectFormPostResult result = new ExtDirectFormPostResult(true);
    assertThat(result.getResult()).hasSize(1).contains(MapEntry.entry("success", Boolean.TRUE));

    result = new ExtDirectFormPostResult(false);
    assertThat(result.getResult()).hasSize(1).contains(MapEntry.entry("success", Boolean.FALSE));
}