Search Options

Results per page
Sort
Preferred Languages
Advance

Results 261 - 270 of 307 for ValueOf (0.04 sec)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/JavaPathType.java

         *
         * @param location identification of a path in the {@code javax.tool} API
         * @return Java path type associated to the given location
         */
        public static Optional<JavaPathType> valueOf(JavaFileManager.Location location) {
            for (JavaPathType type : JavaPathType.values()) {
                if (location.equals(type.location)) {
                    return Optional.of(type);
                }
            }
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Thu Jun 26 07:56:58 UTC 2025
    - 15K bytes
    - Viewed (1)
  2. guava-tests/test/com/google/common/base/FunctionsTest.java

            .testEquals();
      }
    
      public void testForMapWildCardWithDefault() {
        Map<String, Integer> map = new HashMap<>();
        map.put("One", 1);
        map.put("Three", 3);
        Number number = Double.valueOf(42);
        Function<String, Number> function = Functions.forMap(map, number);
    
        assertEquals(1, function.apply("One").intValue());
        assertEquals(number, function.apply("Two"));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        for (int i = 0; i < 1000; i++) {
          // Truncate to even key, so we have put(0, "0") then put(0, "1"). Half the entries are
          // duplicates.
          Integer key = i & ~1;
          String value = String.valueOf(i);
          builder.put(key, value);
          expected.put(key, value);
        }
        ImmutableMap<Integer, String> map = builder.buildKeepingLast();
        assertThat(map).hasSize(500);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 36.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/CharsTest.java

          fail("Cast to char should have failed: " + value);
        } catch (IllegalArgumentException ex) {
          assertWithMessage(value + " not found in exception text: " + ex.getMessage())
              .that(ex.getMessage().contains(String.valueOf(value)))
              .isTrue();
        }
      }
    
      // We need to test that our method behaves like the JDK method.
      @SuppressWarnings("InlineMeInliner")
      public void testCompare() {
        for (char x : VALUES) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Strings.java

       */
      // TODO(diamondm) consider using Arrays.toString() for array parameters
      public static String lenientFormat(
          @Nullable String template, @Nullable Object @Nullable ... args) {
        template = String.valueOf(template); // null -> "null"
    
        if (args == null) {
          args = new Object[] {"(Object[])null"};
        }
    
        // start substituting the arguments into the '%s' placeholders
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 27 17:53:41 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

     *
     * @author mike nonemacher
     */
    
    @NullUnmarked
    public class PopulatedCachesTest extends TestCase {
      // we use integers as keys; make sure the range covers some values that ARE cached by
      // Integer.valueOf(int), and some that are not cached. (127 is the highest cached value.)
      static final int WARMUP_MIN = 120;
      static final int WARMUP_MAX = 135;
      static final int WARMUP_SIZE = WARMUP_MAX - WARMUP_MIN;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/ViewHelper.java

                servletContext.setSessionTrackingModes(
                        fessConfig.getSessionTrackingModesAsSet().stream().map(SessionTrackingMode::valueOf).collect(Collectors.toSet()));
            } catch (final Throwable t) {
                logger.warn("Failed to set SessionTrackingMode.", t);
            }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 52.4K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/entity/SearchRenderDataTest.java

            List<Map<String, Object>> documents = new ArrayList<>();
            for (int i = 11; i <= 20; i++) {
                Map<String, Object> doc = new HashMap<>();
                doc.put("id", String.valueOf(i));
                doc.put("title", "Document " + i);
                doc.put("score", 1.0 - (i * 0.01));
                documents.add(doc);
            }
            searchRenderData.setDocumentItems(documents);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  9. docs/smb3-features/04-directory-leasing-design.md

    }
    
    public DirectoryCacheScope getDirectoryCacheScope() {
        String scope = getProperty(DIRECTORY_CACHE_SCOPE, "IMMEDIATE_CHILDREN");
        return DirectoryCacheScope.valueOf(scope);
    }
    
    public long getDirectoryCacheTimeout() {
        return getLongProperty(DIRECTORY_CACHE_TIMEOUT, 30000);  // 30 seconds
    }
    
    public boolean isDirectoryNotificationsEnabled() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/FunctionsTest.java

            .testEquals();
      }
    
      public void testForMapWildCardWithDefault() {
        Map<String, Integer> map = new HashMap<>();
        map.put("One", 1);
        map.put("Three", 3);
        Number number = Double.valueOf(42);
        Function<String, Number> function = Functions.forMap(map, number);
    
        assertEquals(1, function.apply("One").intValue());
        assertEquals(number, function.apply("Two"));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.9K bytes
    - Viewed (0)
Back to top