Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for booleanValue (0.05 seconds)

  1. android/guava-tests/test/com/google/common/base/PreconditionsTest.java

        boolean aBoolean = true;
        Long boxedLong = null;
        int anInt = 1;
        // With a boxed predicate, no overloads can be selected in phase 1
        // ambiguous without the call to .booleanValue to unbox the Boolean
        checkState(boxedBoolean.booleanValue(), "", 1);
        // ambiguous without the cast to Object because the boxed predicate prevents any overload from
        // being selected in phase 1
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 19K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/base/DefaultsTest.java

     *
     * @author Jige Yu
     */
    @GwtIncompatible
    @NullUnmarked
    public class DefaultsTest extends TestCase {
      public void testGetDefaultValue() {
        assertEquals(false, Defaults.defaultValue(boolean.class).booleanValue());
        assertEquals('\0', Defaults.defaultValue(char.class).charValue());
        assertEquals(0, Defaults.defaultValue(byte.class).byteValue());
        assertEquals(0, Defaults.defaultValue(short.class).shortValue());
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  3. compat/maven-embedder/src/main/java/org/apache/maven/cli/internal/extension/model/io/xpp3/CoreExtensionsXpp3Reader.java

                throws XmlPullParserException {
            if (s != null && s.length() != 0) {
                return Boolean.valueOf(s).booleanValue();
            }
            if (defaultValue != null) {
                return Boolean.valueOf(defaultValue).booleanValue();
            }
            return false;
        } // -- boolean getBooleanValue( String, String, XmlPullParser, String )
    
        /**
         * Method getByteValue.
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Oct 27 13:24:03 GMT 2025
    - 25.3K bytes
    - Click Count (0)
Back to Top