Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for inferrer (0.23 sec)

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

     * generally be avoided. Prefer {@link Interners#newWeakInterner} or another {@code Interner}
     * implementation even for {@code String} interning.
     *
     * @author Kevin Bourrillion
     * @since 3.0
     */
    @DoNotMock("Use Interners.new*Interner")
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public interface Interner<E> {
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Interner.java

     * generally be avoided. Prefer {@link Interners#newWeakInterner} or another {@code Interner}
     * implementation even for {@code String} interning.
     *
     * @author Kevin Bourrillion
     * @since 3.0
     */
    @DoNotMock("Use Interners.new*Interner")
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public interface Interner<E> {
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 2K bytes
    - Viewed (0)
  3. 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 class InternerFunction<E> implements Function<E, E> {
    
        private final Interner<E> interner;
    
        public InternerFunction(Interner<E> interner) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/InternersTest.java

        int concurrencyLevel = 42;
        Interner<Object> interner =
            Interners.newBuilder().strong().concurrencyLevel(concurrencyLevel).build();
        InternerImpl<Object> internerImpl = (InternerImpl<Object>) interner;
        assertEquals(Strength.STRONG, internerImpl.map.keyStrength());
      }
    
      public void testWeak_simplistic() {
        String canonical = "a";
        String not = new String("a");
    
        Interner<String> pool = Interners.newWeakInterner();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/collect/InternersBenchmark.java

    public class InternersBenchmark {
      @Benchmark
      int weakInterner(int reps) {
        Interner<String> interner = Interners.newWeakInterner();
        for (int i = 0; i < reps; i++) {
          String unused = interner.intern(Double.toHexString(Math.random()));
        }
        return reps;
      }
    
      @Benchmark
      int strongInterner(int reps) {
        Interner<String> interner = Interners.newStrongInterner();
        for (int i = 0; i < reps; i++) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Mar 04 04:06:35 GMT 2022
    - 1.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

        WeakInternerImpl {
          @Override
          public <E> Interner<E> create(Collection<E> contents) {
            Interner<E> interner = Interners.newWeakInterner();
            for (E e : contents) {
              E unused = interner.intern(e);
            }
            return interner;
          }
        },
        StrongInternerImpl {
          @Override
          public <E> Interner<E> create(Collection<E> contents) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Mar 04 04:06:35 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

        WeakInternerImpl {
          @Override
          public <E> Interner<E> create(Collection<E> contents) {
            Interner<E> interner = Interners.newWeakInterner();
            for (E e : contents) {
              E unused = interner.intern(e);
            }
            return interner;
          }
        },
        StrongInternerImpl {
          @Override
          public <E> Interner<E> create(Collection<E> contents) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Mar 04 04:06:35 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/NullnessCasts.java

       * there's no way to assign a {@code @Nullable T} to a field {@code T foo;} and instruct the
       * analysis that that means "plain {@code T}" rather than the inferred type {@code @Nullable T}.
       * (Even if supported added {@code @NonNull}, that would not help, since the problem case
       * addressed by this method is the case in which {@code T} has parametric nullness -- and thus its
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Aug 17 15:44:29 GMT 2021
    - 3.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbSession.java

                SmbTree t = (SmbTree)e.nextElement();
                t.treeDisconnect( inError );
            }
    
            if( !inError && transport.server.security != ServerMessageBlock.SECURITY_SHARE ) {
                /*
                 * Logoff And X Request / Response
                 */
    
                SmbComLogoffAndX request = new SmbComLogoffAndX( null );
                request.uid = uid;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 18.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/NullnessCasts.java

       * there's no way to assign a {@code @Nullable T} to a field {@code T foo;} and instruct the
       * analysis that that means "plain {@code T}" rather than the inferred type {@code @Nullable T}.
       * (Even if supported added {@code @NonNull}, that would not help, since the problem case
       * addressed by this method is the case in which {@code T} has parametric nullness -- and thus its
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 10 20:36:34 GMT 2022
    - 3.9K bytes
    - Viewed (0)
Back to top