Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1291 - 1300 of 4,785 for New (0.1 sec)

  1. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/relocation/UserPropertiesArtifactRelocationSource.java

            switch (parts.length) {
                case 3:
                    s = new DefaultArtifact(parts[0], parts[1], "*", "*", parts[2]);
                    break;
                case 4:
                    s = new DefaultArtifact(parts[0], parts[1], "*", parts[2], parts[3]);
                    break;
                case 5:
                    s = new DefaultArtifact(parts[0], parts[1], parts[2], parts[3], parts[4]);
                    break;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/FilteredKeyMultimap.java

      public Collection<V> get(@ParametricNullness K key) {
        if (keyPredicate.apply(key)) {
          return unfiltered.get(key);
        } else if (unfiltered instanceof SetMultimap) {
          return new AddRejectingSet<>(key);
        } else {
          return new AddRejectingList<>(key);
        }
      }
    
      static class AddRejectingSet<K extends @Nullable Object, V extends @Nullable Object>
          extends ForwardingSet<V> {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. internal/cachevalue/cache.go

    	// Managed values.
    	val          atomic.Pointer[T]
    	lastUpdateMs atomic.Int64
    	updating     sync.Mutex
    }
    
    // New allocates a new cached value instance. Tt must be initialized with
    // `.TnitOnce`.
    func New[T any]() *Cache[T] {
    	return &Cache[T]{}
    }
    
    // NewFromFunc allocates a new cached value instance and initializes it with an
    // update function, making it ready for use.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 12:50:46 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/RewriteResponseCacheControl.java

        Cache cache = new Cache(cacheDirectory, 1024 * 1024);
        cache.evictAll();
    
        client = new OkHttpClient.Builder()
            .cache(cache)
            .build();
      }
    
      public void run() throws Exception {
        for (int i = 0; i < 5; i++) {
          System.out.println("    Request: " + i);
    
          Request request = new Request.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 12 03:31:36 UTC 2019
    - 2.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ForwardingSortedMultisetTest.java

      public static Test suite() {
        TestSuite suite = new TestSuite();
    
        suite.addTestSuite(ForwardingSortedMultisetTest.class);
        suite.addTest(
            SortedMultisetTestSuiteBuilder.using(
                    new TestStringMultisetGenerator() {
                      @Override
                      protected Multiset<String> create(String[] elements) {
                        return new StandardImplForwardingSortedMultiset<>(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java

      public void testAddCallback() {
        FluentFuture<String> f = FluentFuture.from(immediateFuture("a"));
        final boolean[] called = new boolean[1];
        f.addCallback(
            new FutureCallback<String>() {
              @Override
              public void onSuccess(String result) {
                called[0] = true;
              }
    
              @Override
              public void onFailure(Throwable t) {}
            },
            directExecutor());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java

            ContentOutputStream cos = new ContentOutputStream(10, Curl.tmpDir);
            cos.write(new byte[] { 0, 1, 2, 3, 4 });
            assertFalse(cos.done);
            assertTrue(cos.isInMemory());
            cos.close();
            assertFalse(cos.done);
        }
    
        @Test
        public void inFile() throws IOException {
            ContentOutputStream cos = new ContentOutputStream(10, Curl.tmpDir);
    Registered: Thu Oct 31 02:32:13 UTC 2024
    - Last Modified: Mon Nov 14 21:05:19 UTC 2022
    - 2K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/dict/stemmeroverride/StemmerOverrideFileTest.java

        public void setUp() throws Exception {
            super.setUp();
            stemmerOverrideFile = new StemmerOverrideFile("1", "dummy", new Date());
            List<StemmerOverrideItem> itemList = new ArrayList<>();
            itemList.add(new StemmerOverrideItem(1, "aaa", "a"));
            itemList.add(new StemmerOverrideItem(2, "bbb", "b"));
            itemList.add(new StemmerOverrideItem(3, "ccc", "c"));
            stemmerOverrideFile.stemmerOverrideItemList = itemList;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

       *
       * <pre>
       *     String[] y = x.toArray(new String[0]);</pre>
       *
       * <p>Note that {@code toArray(new Object[0])} is identical in function to {@code toArray()}.
       *
       * @param a the array into which the elements of the queue are to be stored, if it is big enough;
       *     otherwise, a new array of the same runtime type is allocated for this purpose
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 07 21:36:32 UTC 2024
    - 19K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

         * @throws Exception
         */
        @Test
        public void testRemove3() throws Exception {
            Map<MyKey, String> m = new ArrayMap<MyKey, String>();
            m.put(new MyKey("1"), "d");
            m.put(new MyKey("2"), "d");
            m.remove(new MyKey("1"));
            assertThat(m.containsKey(new MyKey("1")), is(not(true)));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 10.7K bytes
    - Viewed (0)
Back to top