Search Options

Results per page
Sort
Preferred Languages
Advance

Results 441 - 450 of 2,396 for create (0.11 sec)

  1. guava-tests/test/com/google/common/collect/ForwardingMultisetTest.java

                    new TestStringMultisetGenerator() {
    
                      @Override
                      protected Multiset<String> create(String[] elements) {
                        return new StandardImplForwardingMultiset<>(
                            LinkedHashMultiset.create(asList(elements)));
                      }
                    })
                .named("ForwardingMultiset[LinkedHashMultiset] with standard " + "implementations")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/context/SingletonContext.java

                    log.error("Failed to create singleton JCIFS context", e);
                }
            }
            return INSTANCE;
        }
    
    
        /**
         * This static method registers the SMB URL protocol handler which is
         * required to use SMB URLs with the <tt>java.net.URL</tt> class. If this
         * method is not called before attempting to create an SMB URL with the
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Jun 01 08:53:08 UTC 2019
    - 4.2K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/middleware.md

    If you have dependencies with `yield`, the exit code will run *after* the middleware.
    
    If there were any background tasks (documented later), they will run *after* all the middleware.
    
    ///
    
    ## Create a middleware
    
    To create a middleware you use the decorator `@app.middleware("http")` on top of a function.
    
    The middleware function receives:
    
    * The `request`.
    * A function `call_next` that will receive the `request` as a parameter.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/RateLimiter.java

       * @since 28.0 (but only since 33.4.0 in the Android flavor)
       */
      public static RateLimiter create(double permitsPerSecond, Duration warmupPeriod) {
        return create(permitsPerSecond, toNanosSaturated(warmupPeriod), TimeUnit.NANOSECONDS);
      }
    
      /**
       * Creates a {@code RateLimiter} with the specified stable throughput, given as "permits per
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/NavigableMapTestSuiteBuilder.java

        DescendingTestMapGenerator(TestSortedMapGenerator<K, V> delegate) {
          super(delegate);
        }
    
        @Override
        public NavigableMap<K, V> create(Object... entries) {
          NavigableMap<K, V> map = (NavigableMap<K, V>) delegate.create(entries);
          return map.descendingMap();
        }
    
        @Override
        public Iterable<Entry<K, V>> order(List<Entry<K, V>> insertionOrder) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/CompactLinkedHashSetTest.java

        suite.addTest(
            SetTestSuiteBuilder.using(
                    new TestStringSetGenerator() {
                      @Override
                      protected Set<String> create(String[] elements) {
                        return CompactLinkedHashSet.create(asList(elements));
                      }
                    })
                .named("CompactLinkedHashSet")
                .withFeatures(allFeatures)
                .createTestSuite());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/TestContainerGenerator.java

      SampleElements<E> samples();
    
      /**
       * Creates a new container containing the given elements. TODO: would be nice to figure out how to
       * use E... or E[] as a parameter type, but this doesn't seem to work because Java creates an
       * array of the erased type.
       */
      T create(Object... elements);
    
      /**
       * Helper method to create an array of the appropriate type used by this generator. The returned
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/TestContainerGenerator.java

      SampleElements<E> samples();
    
      /**
       * Creates a new container containing the given elements. TODO: would be nice to figure out how to
       * use E... or E[] as a parameter type, but this doesn't seem to work because Java creates an
       * array of the erased type.
       */
      T create(Object... elements);
    
      /**
       * Helper method to create an array of the appropriate type used by this generator. The returned
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        int hash = map.hash(key);
        Object value = new Object();
        int index = hash & (table.length() - 1);
    
        DummyEntry<Object, Object> entry = DummyEntry.create(key, hash, null);
        DummyValueReference<Object, Object> valueRef = DummyValueReference.create(value);
        entry.setValueReference(valueRef);
        table.set(index, entry);
        segment.count++;
    
        assertSame(value, map.get(key, loader));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        int hash = map.hash(key);
        Object value = new Object();
        int index = hash & (table.length() - 1);
    
        DummyEntry<Object, Object> entry = DummyEntry.create(key, hash, null);
        DummyValueReference<Object, Object> valueRef = DummyValueReference.create(value);
        entry.setValueReference(valueRef);
        table.set(index, entry);
        segment.count++;
    
        assertSame(value, map.get(key, loader));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
Back to top