Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for dummy (0.02 sec)

  1. guava-testlib/src/com/google/common/testing/DummyProxy.java

        Object dummy =
            Proxy.newProxyInstance(
                interfaceClasses.iterator().next().getClassLoader(),
                interfaceClasses.toArray(new Class<?>[interfaceClasses.size()]),
                new DummyHandler(interfaceType));
        @SuppressWarnings("unchecked") // interfaceType is T
        T result = (T) dummy;
        return result;
      }
    
      /** Returns the dummy return value for {@code returnType}. */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 22:10:29 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/api/WebApiResponse.java

        }
    
        /**
         * Gets a PrintWriter for writing response content.
         * Returns a dummy PrintWriter that writes to a ByteArrayOutputStream.
         *
         * @return A PrintWriter for response output
         * @throws IOException If an I/O error occurs
         */
        @Override
        public PrintWriter getWriter() throws IOException {
            // dummy stream
            return new PrintWriter(new ByteArrayOutputStream());
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/DummyProxy.java

        Object dummy =
            Proxy.newProxyInstance(
                interfaceClasses.iterator().next().getClassLoader(),
                interfaceClasses.toArray(new Class<?>[interfaceClasses.size()]),
                new DummyHandler(interfaceType));
        @SuppressWarnings("unchecked") // interfaceType is T
        T result = (T) dummy;
        return result;
      }
    
      /** Returns the dummy return value for {@code returnType}. */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 22:10:29 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

      private static class StrongKeyDummyValueEntry<K>
          extends AbstractStrongKeyEntry<K, Dummy, StrongKeyDummyValueEntry<K>>
          implements StrongValueEntry<K, Dummy, StrongKeyDummyValueEntry<K>> {
    
        private StrongKeyDummyValueEntry(K key, int hash) {
          super(key, hash);
        }
    
        @Override
        public final Dummy getValue() {
          return Dummy.VALUE;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 90K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

      }
    
      /**
       * Not supported. <b>You are attempting to create a set that may contain a non-{@code Comparable}
       * element.</b> Proper calls will resolve to the version in {@code ImmutableSortedSet}, not this
       * dummy version.
       *
       * @throws UnsupportedOperationException always
       * @deprecated <b>Pass a parameter of type {@code Comparable} to use {@link
       *     ImmutableSortedSet#of(Comparable)}.</b>
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 36.8K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        throwFirst(nullErrors);
      }
    
      /**
       * Instantiates {@code cls} by invoking one of its non-private constructors or non-private static
       * factory methods with the parameters automatically provided using dummy values.
       *
       * @return The instantiated instance, or {@code null} if the class has no non-private constructor
       *     or factory method to be constructed.
       */
      <T> @Nullable T instantiate(Class<T> cls)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        // hash collision
        DummyEntry<Object, Object> dummy = DummyEntry.create(new Object(), hash, entry);
        Object dummyValue = new Object();
        ValueReference<Object, Object> dummyValueRef = map.newValueReference(dummy, dummyValue, 1);
        dummy.setValueReference(dummyValueRef);
        table.set(index, dummy);
        assertSame(value, segment.get(key, hash));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 110.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/MapMaker.java

      public MapMaker weakValues() {
        return setValueStrength(Strength.WEAK);
      }
    
      /**
       * A dummy singleton value type used by {@link Interners}.
       *
       * <p>{@link MapMakerInternalMap} can optimize for memory usage in this case; see {@link
       * MapMakerInternalMap#createWithDummyValues}.
       */
      enum Dummy {
        VALUE
      }
    
      @CanIgnoreReturnValue
      MapMaker setValueStrength(Strength strength) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/helper/UserAgentHelperTest.java

            assertEquals(UserAgentType.OPERA, userAgentHelper.getUserAgentType());
        }
    
        public void test_getUserAgentType_OTHER() {
            getMockRequest().addHeader("user-agent", "Dummy");
            assertEquals(UserAgentType.OTHER, userAgentHelper.getUserAgentType());
        }
    
        public void test_getUserAgentType_nullUserAgent() {
            getMockRequest().addHeader("user-agent", null);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 13:41:04 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        throwFirst(nullErrors);
      }
    
      /**
       * Instantiates {@code cls} by invoking one of its non-private constructors or non-private static
       * factory methods with the parameters automatically provided using dummy values.
       *
       * @return The instantiated instance, or {@code null} if the class has no non-private constructor
       *     or factory method to be constructed.
       */
      <T> @Nullable T instantiate(Class<T> cls)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
Back to top