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

@Override
public void updateUI() {
    super.updateUI();
    UIManager.put("ComboBox.squareButton", Boolean.FALSE);
    setUI(new BasicComboBoxUI() {
        @Override/*from   ww w  .j a va2 s.c o m*/
        protected JButton createArrowButton() {
            JButton b = new JButton();
            b.setBorder(BorderFactory.createEmptyBorder());
            b.setVisible(false);
            return b;
        }
    });
    setBorder(BorderFactory.createLineBorder(Color.GRAY));
}

From source file:com.sylvanaar.idea.Lua.editor.inspections.utils.BoolUtils.java

public static boolean isFalse(LuaConditionalExpression condition) {
    Object value = ObjectUtils.defaultIfNull(condition.evaluate(), UNKNOWN);

    return value.equals(Boolean.FALSE);
}

From source file:Main.java

@Override
public Boolean queryFrom(TemporalAccessor temporal) {
    if (temporal.isSupported(ChronoField.DAY_OF_MONTH) && temporal.isSupported(ChronoField.DAY_OF_WEEK)) {
        int dayOfMonth = temporal.get(ChronoField.DAY_OF_MONTH);
        int weekDay = temporal.get(ChronoField.DAY_OF_WEEK);
        DayOfWeek dayOfWeek = DayOfWeek.of(weekDay);
        if (dayOfMonth == 1 && dayOfWeek == DayOfWeek.MONDAY) {
            return Boolean.TRUE;
        }//from   w w  w  . j a  v  a 2s.co m
    }
    return Boolean.FALSE;
}

From source file:org.mythtv.services.api.Bool.java

public Bool() {
    value = Boolean.FALSE;
}

From source file:components.TextInputDemo.java

public static void main(String[] args) {
    //Schedule a job for the event dispatch thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
        public void run() {
            //Turn off metal's use of bold fonts
            UIManager.put("swing.boldMetal", Boolean.FALSE);
            createAndShowGUI();/*w  w w .j  a  v  a  2  s  . c  o m*/
        }
    });
}

From source file:com.pamarin.income.model.SelectionModel.java

public Boolean getSelected() {
    if (selected == null) {
        selected = Boolean.FALSE;
    }

    return selected;
}

From source file:net.ceos.project.poi.annotated.bean.UniqueDecoratorObjectBuilder.java

/**
 * Create a UniqueDecoratorObject for tests.
 * /*w w w . j  av a2s  .co m*/
 * @return the {@link UniqueDecoratorObject}
 */
public static UniqueDecoratorObject buildUniqueDecoratorObject(int multiplier) {
    UniqueDecoratorObject toValidate = new UniqueDecoratorObject();

    toValidate.setDateAttribute(new Date());
    toValidate.setStringAttribute("some string");
    toValidate.setIntegerAttribute(46 * multiplier);
    toValidate.setBooleanAttribute(Boolean.FALSE);
    toValidate.setDoublePrimitiveAttribute(44.6 * multiplier);
    toValidate.setLongPrimitiveAttribute(987654321L * multiplier);
    toValidate.setFloatAttribute(14.765f * multiplier);
    toValidate.setUnitFamily(UnitFamily.COMPONENTS);
    toValidate.setBigDecimalAttribute(BigDecimal.valueOf(24.777).multiply(BigDecimal.valueOf(multiplier)));

    return toValidate;
}

From source file:net.ceos.project.poi.annotated.bean.cascade.CascadeL3Builder.java

/**
 * Create a CascadeL3 for tests.//from  w w w  . j  a  v  a2  s.  c  o m
 * 
 * @return the {@link CascadeL3}
 */
public static CascadeL3 buildCascadeL3(int multiplier) {
    CascadeL3 toValidate = new CascadeL3();

    toValidate.setDateAttribute(new Date());
    toValidate.setStringAttribute("Cascade L3");
    toValidate.setIntegerAttribute(46 * multiplier);
    toValidate.setDoubleAttribute(Double.valueOf("25.3") * multiplier);
    toValidate.setLongAttribute(Long.valueOf("1234567890") * multiplier);
    toValidate.setBooleanAttribute(Boolean.FALSE);
    /* create sub object Job */
    Job job = new Job();
    job.setJobCode(0005);
    job.setJobFamily("Family Job Name L2");
    job.setJobName("Job Name L2");
    toValidate.setJob(job);

    // TODO add new fields below

    return toValidate;
}

From source file:net.ceos.project.poi.annotated.bean.FreeElementObjectBuilder.java

/**
 * Create a FreeElementObject for tests.
 * // ww  w .ja  v a  2s .  co m
 * @return the {@link FreeElementObject}
 */
public static FreeElementObject buildFreeElementObject(int multiplier) {
    FreeElementObject toValidate = new FreeElementObject();

    toValidate.setFreeString("some string");
    toValidate.setFreeDouble(Double.valueOf("11.21") * multiplier);
    toValidate.setFreePrimitiveInt(12 * multiplier);
    toValidate.setFreeDate(new Date());
    toValidate.setFreeLong(Long.valueOf("1234567890") * multiplier);
    toValidate.setFreePrimitiveBoolean(Boolean.FALSE);
    // TODO add new fields below

    return toValidate;
}

From source file:net.ceos.project.poi.annotated.bean.cascade.CascadeL2Builder.java

/**
 * Create a CascadeL2 for tests.//w ww  .jav  a 2  s .  c  o  m
 * 
 * @return the {@link CascadeL2}
 */
public static CascadeL2 buildCascadeL2(int multiplier) {
    CascadeL2 toValidate = new CascadeL2();

    toValidate.setDateAttribute(new Date());
    toValidate.setStringAttribute("Cascade L2");
    toValidate.setIntegerAttribute(46 * multiplier);
    toValidate.setDoubleAttribute(Double.valueOf("25.3") * multiplier);
    toValidate.setLongAttribute(Long.valueOf("1234567890") * multiplier);
    toValidate.setBooleanAttribute(Boolean.FALSE);
    /* create sub object Job */
    Job job = new Job();
    job.setJobCode(0005);
    job.setJobFamily("Family Job Name L2");
    job.setJobName("Job Name L2");
    toValidate.setJob(job);

    CascadeL3 l3 = CascadeL3Builder.buildCascadeL3();
    ArrayList<CascadeL3> l3List = new ArrayList<>();
    l3List.add(l3);
    l3List.add(l3);
    l3List.add(l3);
    l3List.add(l3);
    l3List.add(l3);

    toValidate.setObjectsList(l3List);
    // TODO add new fields below

    return toValidate;
}