Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 189 for Present (0.4 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. 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)
  3. 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)
  4. android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java

        Set<Feature<?>> moreAbsentFeatures = moreRequirements.getAbsentFeatures();
        checkConflict("absent", absentFeatures, "present", morePresentFeatures, source);
        checkConflict("present", presentFeatures, "absent", moreAbsentFeatures, source);
        presentFeatures.addAll(morePresentFeatures);
        absentFeatures.addAll(moreAbsentFeatures);
        return requirements;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 21 15:08:35 GMT 2022
    - 12.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

        // flip GOLDEN_PRESENT_KEY to true even if it wasn't explicitly inserted
        // (false positive).
        assertThat(bloomFilter.mightContain(GOLDEN_PRESENT_KEY)).isFalse();
        for (int i = 0; i < NUM_PUTS; i++) {
          bloomFilter.put(getNonGoldenRandomKey());
        }
        bloomFilter.put(GOLDEN_PRESENT_KEY);
    
        int numThreads = 12;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/UnsignedInts.java

          return -1;
        } else {
          return (int) value;
        }
      }
    
      /**
       * Returns the least value present in {@code array}, treating values as unsigned.
       *
       * @param array a <i>nonempty</i> array of unsigned {@code int} values
       * @return the value present in {@code array} that is less than or equal to every other value in
       *     the array according to {@link #compare}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/Floats.java

            return i;
          }
        }
        return -1;
      }
    
      /**
       * Returns the least value present in {@code array}, using the same rules of comparison as {@link
       * Math#min(float, float)}.
       *
       * @param array a <i>nonempty</i> array of {@code float} values
       * @return the value present in {@code array} that is less than or equal to every other value in
       *     the array
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  8. maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java

        }
    
        protected void assertLocalArtifactNotPresent(Artifact artifact) throws Exception {
            ArtifactRepository localRepo = localRepository();
    
            String path = localRepo.pathOf(artifact);
    
            File file = new File(localRepo.getBasedir(), path);
    
            assertFalse(file.exists(), "Local artifact " + file + " should not be present.");
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  9. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 13K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/HashBiMap.java

            hashTableVToK[valueBucket] = entryToRehash;
          }
        }
      }
    
      /**
       * Returns the bucket (in either the K-to-V or V-to-K tables) where elements with the specified
       * hash could be found, if present, or could be inserted.
       */
      private int bucket(int hash) {
        return hash & (hashTableKToV.length - 1);
      }
    
      /** Given a key, returns the index of the entry in the tables, or ABSENT if not found. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 36.4K bytes
    - Viewed (0)
Back to top