Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 379 for present (0.05 sec)

  1. android/guava/src/com/google/common/base/Present.java

        return new Present<>(
            checkNotNull(
                function.apply(reference),
                "the Function passed to Optional.transform() must not return null."));
      }
    
      @Override
      public boolean equals(@Nullable Object obj) {
        if (obj instanceof Present) {
          Present<?> other = (Present<?>) obj;
          return reference.equals(other.reference);
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Apr 15 22:14:00 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/collection/LruHashSet.java

         *         element.
         */
        @Override
        public boolean add(final E o) {
            return map.put(o, PRESENT) == null;
        }
    
        /**
         * Removes the specified element from this set if it is present.
         *
         * @param o
         *            object to be removed from this set, if present.
         * @return true if the set contained the specified element.
         */
        @Override
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat Jul 05 00:11:05 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/CollectionFuture.java

                : Lists.<@Nullable Present<V>>newArrayListWithCapacity(futures.size());
    
        // Populate the results list with null initially.
        for (int i = 0; i < futures.size(); ++i) {
          values.add(null);
        }
    
        this.values = values;
      }
    
      @Override
      final void collectOneValue(int index, @ParametricNullness V returnValue) {
        @RetainedLocalRef List<@Nullable Present<V>> localValues = values;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessJsonResourceProviderTest.java

            // Verify the field naming is set to CAMEL_TO_LOWER_SNAKE
            OptionalThing<JsonFieldNaming> fieldNamingOpt = option.getFieldNaming();
            assertTrue("Field naming should be present", fieldNamingOpt.isPresent());
            assertEquals(JsonFieldNaming.CAMEL_TO_LOWER_SNAKE, fieldNamingOpt.get());
        }
    
        public void test_provideMappingOption_notNull() {
            // Test that mapping option is never null
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  5. 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()));
      }
    
      @CollectionSize.Require(SEVERAL)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 7K bytes
    - Viewed (0)
  6. 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()));
      }
    
      @CollectionSize.Require(SEVERAL)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 7K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/validation/CustomSizeTest.java

            assertNotNull("Retention annotation should be present", retention);
            assertEquals("Retention should be RUNTIME", RetentionPolicy.RUNTIME, retention.value());
        }
    
        // Test annotation target elements
        public void test_targetElements() {
            final Target target = CustomSize.class.getAnnotation(Target.class);
            assertNotNull("Target annotation should be present", target);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/validation/UriTypeTest.java

            assertNotNull("Retention annotation should be present", retention);
            assertEquals("Retention should be RUNTIME", RetentionPolicy.RUNTIME, retention.value());
        }
    
        // Test annotation target elements
        public void test_targetElements() {
            final Target target = UriType.class.getAnnotation(Target.class);
            assertNotNull("Target annotation should be present", target);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 21K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java

      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testPut_unsupportedPresentExistingValue() {
        try {
          assertEquals("put(present, existingValue) should return present or throw", v0(), put(e0()));
        } catch (UnsupportedOperationException tolerated) {
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java

      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testPut_unsupportedPresentExistingValue() {
        try {
          assertEquals("put(present, existingValue) should return present or throw", v0(), put(e0()));
        } catch (UnsupportedOperationException tolerated) {
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.1K bytes
    - Viewed (0)
Back to top