Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 759 for Count (0.05 sec)

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

        assertFalse(multiset.contains(s2));
        assertEquals(1, multiset.count(s1));
        assertEquals(0, multiset.count(s2));
    
        multiset.add(s1);
        multiset.add(s2, 3);
        assertEquals(2, multiset.count(s1));
        assertEquals(3, multiset.count(s2));
    
        multiset.remove(s1);
        assertEquals(1, multiset.count(s1));
        assertEquals(3, multiset.count(s2));
      }
    
      public void testLogicalKeyEquality_strongKeys() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/CountTest.java

      }
    
      public void testAddAndGet() {
        Count holder = new Count(20);
        assertEquals(21, holder.addAndGet(1));
      }
    
      public void testGetAndSet() {
        Count holder = new Count(10);
        assertEquals(10, holder.getAndSet(20));
        assertEquals(20, holder.get());
      }
    
      public void testSet() {
        Count holder = new Count(10);
        holder.set(20);
        assertEquals(20, holder.get());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReaderTest.java

            int count = 0;
            int prev = -1;
            Map<String, Object> source;
            while ((source = reader.read()) != null) {
                int current = Integer.parseInt(source.get("field2").toString());
                assertTrue(prev < current);
                prev = current;
                count++;
            }
            assertEquals(num, count);
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/dcerpc/msrpc/samr.java

            public int count;
            public SamrSamEntry[] entries;
    
            public void encode(NdrBuffer _dst) throws NdrException {
                _dst.align(4);
                _dst.enc_ndr_long(count);
                _dst.enc_ndr_referent(entries, 1);
    
                if (entries != null) {
                    _dst = _dst.deferred;
                    int _entriess = count;
                    _dst.enc_ndr_long(_entriess);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 14K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java

       * UnsupportedOperationException."
       */
      abstract void setCountNoCheckReturnValue(E element, int count);
    
      private void assertSetCountIncreasingFailure(E element, int count) {
        try {
          setCountNoCheckReturnValue(element, count);
          fail("a call to multiset.setCount() to increase an element's count should throw");
        } catch (UnsupportedOperationException expected) {
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 13K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/dcerpc/msrpc/netdfs.idl

    		uint32_t num_stores;
    		[size_is(num_stores)] DfsStorageInfo *stores;
    	} DfsInfo3;
    
    	typedef struct {
    		uint32_t count;
    		[size_is(count)] DfsInfo3 *s;
    	} DfsEnumArray3;
    
    	typedef struct {
    		[string] wchar_t *dfs_name;
    	} DfsInfo200;
    
    	typedef struct {
    		uint32_t count;
    		[size_is(count)] DfsInfo200 *s;
    	} DfsEnumArray200;
    
    	typedef struct {
    		uint32_t flags;
    		[string] wchar_t *dfs_name;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/FaultTolerantClientTest.java

                if (now - previousTime < interval) {
                    throw new IllegalStateException();
                }
                previousTime = now;
    
                count++;
                if (count <= exceptionCount) {
                    throw new CrawlerSystemException("exception " + count);
                }
    
                final ResponseData responseData = new ResponseData();
                responseData.setUrl(request.getUrl());
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountUnconditionallyTester.java

      void setCountCheckReturnValue(E element, int count) {
        assertEquals(
            "multiset.setCount() should return the old count",
            getMultiset().count(element),
            setCount(element, count));
      }
    
      @Override
      void setCountNoCheckReturnValue(E element, int count) {
        setCount(element, count);
      }
    
      @CanIgnoreReturnValue
      private int setCount(E element, int count) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/CountTest.java

      }
    
      public void testAddAndGet() {
        Count holder = new Count(20);
        assertEquals(21, holder.addAndGet(1));
      }
    
      public void testGetAndSet() {
        Count holder = new Count(10);
        assertEquals(10, holder.getAndSet(20));
        assertEquals(20, holder.get());
      }
    
      public void testSet() {
        Count holder = new Count(10);
        holder.set(20);
        assertEquals(20, holder.get());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/io/CountingInputStream.java

        if (result != -1) {
          count++;
        }
        return result;
      }
    
      @Override
      public int read(byte[] b, int off, int len) throws IOException {
        int result = in.read(b, off, len);
        if (result != -1) {
          count += result;
        }
        return result;
      }
    
      @Override
      public long skip(long n) throws IOException {
        long result = in.skip(n);
        count += result;
        return result;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top