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.mycompany.listBoxer.services.impl.ListBoxerServiceImpl.java

@Override
public Boolean saveContent(String userInput) {
    if (StringUtils.isBlank(userInput)) {
        return Boolean.FALSE;
    }/*  w  w  w . j  a v  a2 s . c  om*/

    content.add(userInput);
    return Boolean.TRUE;
}

From source file:sys.core.manager.UbigeoManager.java

public List<UbigeoDto> obtenerTodosActivos() throws DAOException {
    Map<String, Object> filtros = new HashMap<String, Object>();
    filtros.put("estado", Boolean.TRUE);
    Map<String, String> orden = new HashMap<String, String>();
    orden.put("descripcion", "asc");
    return springHibernateDao.obtenerDtosConFiltrosConOrden(UbigeoDto.class, filtros, orden);
}

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

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

    try {/* w  w  w.j a v  a  2s.c o  m*/
        long starttime = System.nanoTime();
        List<HKpi> hkpilist = hKpiDao.findAll();
        long endtime = System.nanoTime();
        hkpiresultset.setHKpiList(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:Main.java

public JPanel getContent() {
    String[] ids = { "north", "west", "south", "east" };
    Boolean[] values = { Boolean.TRUE, Boolean.FALSE, Boolean.FALSE, Boolean.FALSE };
    CheckComboStore[] stores = new CheckComboStore[ids.length];
    for (int j = 0; j < ids.length; j++)
        stores[j] = new CheckComboStore(ids[j], values[j]);
    JComboBox combo = new JComboBox(stores);
    combo.setRenderer(new CheckComboRenderer());
    combo.addActionListener(this);
    JPanel panel = new JPanel();
    panel.add(combo);/* w ww.ja v a 2 s  .  co m*/
    return panel;
}

From source file:io.lavagna.web.helper.UserSession.java

public static boolean isLocked(HttpServletRequest req) {
    return Boolean.TRUE.equals(req.getSession().getAttribute(AUTH_LOCKED));
}

From source file:WeakHashSet.java

public boolean add(Object o) {
    return map.put(o, Boolean.TRUE) == null;
}

From source file:com.anhao.admin.bean.RoleServiceBean.java

@Override
public void get() {
    System.out.println("RoleServiceBean ..................");

    Role role = new Role();

    String randomId = RandomStringUtils.randomNumeric(10);

    logger.debug("randomId :{}", randomId);
    role.setId(randomId);//from w ww .j  a  v  a2s.c o m

    role.setCreateDate(new Date());
    role.setModifyDate(new Date());
    role.setIsSystem(Boolean.TRUE);
    role.setDescription("Description" + RandomStringUtils.randomNumeric(5));
    role.setName("iam insert role " + RandomStringUtils.randomNumeric(5));
    role.setValue("ROLE_ADMIN");
    roleMapper.create(role);
}

From source file:VetoableChangeListenerDemo.java

public void vetoableChange(PropertyChangeEvent ev) throws PropertyVetoException {
    String name = ev.getPropertyName();
    if (name.equals(JInternalFrame.IS_ICON_PROPERTY) && (ev.getNewValue() == Boolean.TRUE)) {
        System.out.println("JInternalFrame.IS_ICON_PROPERTY");
    }/*from  w w  w  .j a  v  a2  s .  co  m*/
}

From source file:com.haulmont.cuba.gui.app.security.role.edit.PermissionUiHelper.java

public static AttributePermissionVariant getCheckBoxVariant(Object value,
        AttributePermissionVariant activeVariant) {
    AttributePermissionVariant permissionVariant;
    if (Boolean.TRUE.equals(value))
        permissionVariant = activeVariant;
    else/*ww w  . j a  va  2s .  c om*/
        permissionVariant = AttributePermissionVariant.NOTSET;
    return permissionVariant;
}

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  www  . j av  a 2 s  .c  o  m*/
        request.setAttribute("isDup", Boolean.FALSE);
    }
    return null;
}