Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 244 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/src/com/google/common/collect/Internal.java

    import com.google.common.annotations.J2ktIncompatible;
    import java.time.Duration;
    
    /** This class is for {@code com.google.common.collect} use only! */
    @J2ktIncompatible
    @GwtIncompatible // java.time.Duration
    final class Internal {
    
      /**
       * Returns the number of nanoseconds of the given duration without throwing or overflowing.
       *
       * <p>Instead of throwing {@link ArithmeticException}, this method silently saturates to either
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Nov 04 17:24:58 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/Internal.java

    /** This class is for {@code com.google.common.collect} use only! */
    @J2ktIncompatible
    @GwtIncompatible // java.time.Duration
    @IgnoreJRERequirement // We use this method only from within APIs that require a Duration.
    final class Internal {
    
      /**
       * Returns the number of nanoseconds of the given duration without throwing or overflowing.
       *
       * <p>Instead of throwing {@link ArithmeticException}, this method silently saturates to either
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Nov 04 17:24:58 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/internal.kt

    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.internal.concurrent.TaskRunner
    import okhttp3.internal.connection.ConnectionListener
    import okhttp3.internal.connection.RealConnection
    
    // Exposes Kotlin-internal APIs to Java test code and code in other modules.
    
    internal fun parseCookie(
      currentTimeMillis: Long,
      url: HttpUrl,
      setCookie: String,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 3.8K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/llm/ChatIntent.java

         */
        public static ChatIntent fromValue(final String value) {
            if (value == null) {
                return UNCLEAR;
            }
            for (final ChatIntent intent : values()) {
                if (intent.value.equalsIgnoreCase(value.trim())) {
                    return intent;
                }
            }
            return UNCLEAR;
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 01 08:11:18 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/auth/AuthenticationManagerTest.java

            assertNotNull(manager);
        }
    
        // Test insert with no chains
        @Test
        public void test_insert_noChains() {
            User user = createTestUser("testuser");
            authenticationManager.insert(user);
            // Should not throw exception even with no chains
        }
    
        // Test insert with single chain
        @Test
        public void test_insert_singleChain() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 14.3K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/util/concurrent/Monitor.java

      public boolean enter(Duration time) {
        return enter(toNanosSaturated(time), NANOSECONDS);
      }
    
      /**
       * Enters this monitor. Blocks at most the given time.
       *
       * @return whether the monitor was entered
       */
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      public boolean enter(long time, TimeUnit unit) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jan 28 22:39:02 GMT 2026
    - 43.5K bytes
    - Click Count (0)
Back to Top