Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 408 for Present (0.37 sec)

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

          fail();
        } catch (IllegalStateException expected) {
        }
      }
    
      public void testGet_present() {
        assertEquals("training", Optional.of("training").get());
      }
    
      @SuppressWarnings("OptionalOfRedundantMethod") // Unit tests for Optional
      public void testOr_T_present() {
        assertEquals("a", Optional.of("a").or("default"));
      }
    
      public void testOr_T_absent() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java

      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testRemove_occurrences_present() {
        assertEquals(
            "multiset.remove(present, 2) didn't return the old count",
            1,
            getMultiset().remove(e0(), 2));
        assertFalse(
            "multiset contains present after multiset.remove(present, 2)",
            getMultiset().contains(e0()));
        assertEquals(0, getMultiset().count(e0()));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveTester.java

        E duplicate = arrayAndDuplicate.duplicate;
    
        int firstIndex = getList().indexOf(duplicate);
        int initialSize = getList().size();
        assertTrue("remove(present) should return true", getList().remove(duplicate));
        assertTrue(
            "After remove(duplicate), a list should still contain the duplicate element",
            getList().contains(duplicate));
        assertFalse(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.5K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java

      }
    
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE})
      @CollectionSize.Require(absent = ZERO)
      public void testCompute_presentToPresent() {
        assertEquals(
            "Map.compute(present, functionReturningValue) should return new value",
            v3(),
            getMap()
                .compute(
                    k0(),
                    (k, v) -> {
                      assertEquals(k0(), k);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 6.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Optional.java

     * might be absent" as two distinct types in your program, which can aid clarity.
     *
     * <p>Some uses of this class include
     *
     * <ul>
     *   <li>As a method return type, as an alternative to returning {@code null} to indicate that no
     *       value was available
     *   <li>To distinguish between "unknown" (for example, not present in a map) and "known to have no
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/OptionalTest.java

          optional.get();
          fail();
        } catch (IllegalStateException expected) {
        }
      }
    
      public void testGet_present() {
        assertEquals("training", Optional.of("training").get());
      }
    
      @SuppressWarnings("OptionalOfRedundantMethod") // Unit tests for Optional
      public void testOr_T_present() {
        assertEquals("a", Optional.of("a").or("default"));
      }
    
      public void testOr_T_absent() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetReadsTester.java

      public void testElementSet_contains() {
        assertTrue(
            "multiset.elementSet().contains(present) returned false",
            getMultiset().elementSet().contains(e0()));
      }
    
      @CollectionSize.Require(absent = ZERO)
      public void testEntrySet_contains() {
        assertTrue(
            "multiset.entrySet() didn't contain [present, 1]",
            getMultiset().entrySet().contains(Multisets.immutableEntry(e0(), 1)));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.9K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfAbsentTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testComputeIfAbsent_unsupportedPresentExistingValue() {
        try {
          assertEquals(
              "computeIfAbsent(present, returnsCurrentValue) should return present or throw",
              v0(),
              getMap()
                  .computeIfAbsent(
                      k0(),
                      k -> {
                        assertEquals(k0(), k);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 6.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/reflect/TypeToInstanceMap.java

    public interface TypeToInstanceMap<B extends @Nullable Object>
        extends Map<TypeToken<? extends @NonNull B>, B> {
    
      /**
       * Returns the value the specified class is mapped to, or {@code null} if no entry for this class
       * is present. This will only return a value that was bound to this specific class, not a value
       * that may have been bound to a subtype.
       *
       * <p>{@code getInstance(Foo.class)} is equivalent to {@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Apr 22 01:15:23 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/netbios/NbtException.java

                            result += "Not listening for calling name";
                            break;
                        case CALLED_NOT_PRESENT:
                            result += "Called name not present";
                            break;
                        case NO_RESOURCES:
                            result += "Called name present, but insufficient resources";
                            break;
                        case UNSPECIFIED:
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 3.9K bytes
    - Viewed (0)
Back to top