Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 95 for intern (0.04 seconds)

  1. guava/src/com/google/common/collect/Interners.java

       * Returns a function that delegates to the {@link Interner#intern} method of the given interner.
       *
       * @since 8.0
       */
      public static <E> Function<E, E> asFunction(Interner<E> interner) {
        return new InternerFunction<>(checkNotNull(interner));
      }
    
      private static final class InternerFunction<E> implements Function<E, E> {
    
        private final Interner<E> interner;
    
        InternerFunction(Interner<E> interner) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 6K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/Interners.java

       * Returns a function that delegates to the {@link Interner#intern} method of the given interner.
       *
       * @since 8.0
       */
      public static <E> Function<E, E> asFunction(Interner<E> interner) {
        return new InternerFunction<>(checkNotNull(interner));
      }
    
      private static final class InternerFunction<E> implements Function<E, E> {
    
        private final Interner<E> interner;
    
        InternerFunction(Interner<E> interner) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 6K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/collect/InternersTest.java

        assertThat(pool.intern(canonical)).isSameInstanceAs(canonical);
        assertThat(pool.intern(not)).isSameInstanceAs(canonical);
      }
    
      public void testWeak_null() {
        Interner<String> pool = Interners.newWeakInterner();
        assertThrows(NullPointerException.class, () -> pool.intern(null));
      }
    
      public void testWeak_builder() {
        int concurrencyLevel = 42;
        Interner<Object> interner =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/collect/InternersTest.java

        assertThat(pool.intern(canonical)).isSameInstanceAs(canonical);
        assertThat(pool.intern(not)).isSameInstanceAs(canonical);
      }
    
      public void testWeak_null() {
        Interner<String> pool = Interners.newWeakInterner();
        assertThrows(NullPointerException.class, () -> pool.intern(null));
      }
    
      public void testWeak_builder() {
        int concurrencyLevel = 42;
        Interner<Object> interner =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  5. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

       *
       * <p>Note that you cannot always tell if an attempt to insert an element will succeed by
       * inspecting {@code remainingCapacity} because it may be the case that another thread is about to
       * insert or remove an element.
       */
      @CanIgnoreReturnValue
      @Override
      public int remainingCapacity() {
        Monitor monitor = this.monitor;
        monitor.enter();
        try {
          return items.length - count;
        } finally {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 22.4K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/dict/mapping/CharMappingFileTest.java

            CharMappingItem newItem = new CharMappingItem(0, new String[] { "x", "y" }, "z");
    
            // Insert will trigger MappingUpdater which will be closed automatically
            charMappingFile.insert(newItem);
    
            // Verify the operation completed successfully despite any internal errors
            PagingList<CharMappingItem> result = charMappingFile.selectList(0, 10);
            assertEquals(2, result.size());
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 18.9K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/llm/AbstractLlmClient.java

                logger.info("[RAG:INTENT] Intent detected. intent={}, query={}, elapsedTime={}ms", result.getIntent(), result.getQuery(),
                        System.currentTimeMillis() - startTime);
                if (logger.isDebugEnabled()) {
                    logger.debug("[RAG:INTENT] Intent detection completed. intent={}, query={}, reasoning={}, elapsedTime={}ms",
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 72K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/llm/IntentDetectionResult.java

            this.intent = intent;
            this.query = query;
            this.documentUrl = documentUrl;
            this.reasoning = reasoning;
        }
    
        /**
         * Returns the detected intent type.
         *
         * @return the intent type
         */
        public ChatIntent getIntent() {
            return intent;
        }
    
        /**
         * Returns the Fess query string for search.
         *
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 07 13:27:59 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  9. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

       *
       * <p>Note that you cannot always tell if an attempt to insert an element will succeed by
       * inspecting {@code remainingCapacity} because it may be the case that another thread is about to
       * insert or remove an element.
       */
      @CanIgnoreReturnValue
      @Override
      public int remainingCapacity() {
        Monitor monitor = this.monitor;
        monitor.enter();
        try {
          return items.length - count;
        } finally {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 22.4K bytes
    - Click Count (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HeadersCommon.kt

     */
    @file:Suppress("ktlint:standard:filename")
    
    package okhttp3.internal
    
    import okhttp3.Headers
    
    /** This is the same as Chrome's limit. */
    internal const val HEADER_LIMIT = 256 * 1024L
    
    internal fun Headers.commonName(index: Int): String = namesAndValues.getOrNull(index * 2) ?: throw IndexOutOfBoundsException("name[$index]")
    
    internal fun Headers.commonValue(index: Int): String =
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 6K bytes
    - Click Count (0)
Back to Top