Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1151 - 1160 of 1,355 for add1 (0.02 sec)

  1. android/guava-tests/test/com/google/common/hash/HashingTest.java

      }
    
      public void testCombineOrdered_randomHashCodes() {
        Random random = new Random(7);
        List<HashCode> hashCodes = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
          hashCodes.add(HashCode.fromLong(random.nextLong()));
        }
        HashCode hashCode1 = Hashing.combineOrdered(hashCodes);
        Collections.shuffle(hashCodes, random);
        HashCode hashCode2 = Hashing.combineOrdered(hashCodes);
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 26.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/FilesTest.java

            new LineProcessor<List<String>>() {
              final List<String> collector = new ArrayList<>();
    
              @Override
              public boolean processLine(String line) {
                collector.add(line);
                return true;
              }
    
              @Override
              public List<String> getResult() {
                return collector;
              }
            };
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  3. docs/recipes.md

    When writing request headers, use `header(name, value)` to set the only occurrence of `name` to `value`. If there are existing values, they will be removed before the new value is added. Use `addHeader(name, value)` to add a header without removing the headers already present.
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java

            // byteCount at 33 + 1 + 34*2 = 102
            ServerMessageBlock.writeInt2(0, buf, 102);
    
            int n = resp.decode(buf, 0);
            assertTrue(n > 0);
            // Implementation adds +8 words (16 bytes) to account for CSC extra
            assertEquals(42, resp.wordCount);
        }
    
        @Test
        @DisplayName("toString includes andxCommand and andxOffset")
        void testToStringContainsFields() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/FilteredEntryMultimap.java

          List<V> result = new ArrayList<>();
          Iterator<V> itr = collection.iterator();
          while (itr.hasNext()) {
            V v = itr.next();
            if (satisfies(k, v)) {
              itr.remove();
              result.add(v);
            }
          }
          if (result.isEmpty()) {
            return null;
          } else if (unfiltered instanceof SetMultimap) {
            return unmodifiableSet(new LinkedHashSet<>(result));
          } else {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/services/ProblemCollector.java

                getCounter(problem.getSeverity()).increment();
                if (currentCount <= maxCountLimit || dropProblemWithLowerSeverity(problem.getSeverity())) {
                    getProblems(problem.getSeverity()).add(problem);
                    return true;
                }
                return false;
            }
    
            @Override
            public Stream<P> problems(BuilderProblem.Severity severity) {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jul 18 17:30:19 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  7. cmd/utils_test.go

    			}
    			if objectName != testCase.object {
    				t.Errorf("failed expected bucket name \"%s\", got \"%s\"", testCase.object, objectName)
    			}
    		})
    	}
    }
    
    // Add tests for starting and stopping different profilers.
    func TestStartProfiler(t *testing.T) {
    	_, err := startProfiler("")
    	if err == nil {
    		t.Fatal("Expected a non nil error, but nil error returned for invalid profiler.")
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/io/ByteStreams.java

        if (b == -1) {
          return bytes;
        }
    
        // the stream was longer, so read the rest normally
        Queue<byte[]> bufs = new ArrayDeque<>(TO_BYTE_ARRAY_DEQUE_SIZE + 2);
        bufs.add(bytes);
        bufs.add(new byte[] {(byte) b});
        return toByteArrayInternal(in, bufs, bytes.length + 1);
      }
    
      /**
       * Reads and discards data from the given {@code InputStream} until the end of the stream is
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpClient.java

            if (ftpAuthentications != null) {
                for (final FtpAuthentication ftpAuthentication : ftpAuthentications) {
                    holder.add(ftpAuthentication);
                }
            }
            ftpAuthenticationHolder = holder;
        }
    
        @Override
        public void close() {
            if (ftpAuthenticationHolder == null) {
                return;
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/opensearch/log/allcommon/EsAbstractConditionAggregation.java

            assertObjectNotNull("builder", builder);
            if (aggregationAggregationBuilderList == null) {
                aggregationAggregationBuilderList = new ArrayList<>();
            }
            aggregationAggregationBuilderList.add(builder);
        }
    
        // ===================================================================================
        //                                                                 Invalid Aggregation
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 12.4K bytes
    - Viewed (0)
Back to top