Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 789 for count (0.18 sec)

  1. guava/src/com/google/common/collect/Count.java

    import javax.annotation.CheckForNull;
    
    /**
     * A mutable value of type {@code int}, for multisets to use in tracking counts of values.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    final class Count implements Serializable {
      private int value;
    
      Count(int value) {
        this.value = value;
      }
    
      public int get() {
        return value;
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Aug 05 00:40:25 GMT 2021
    - 1.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Count.java

    import javax.annotation.CheckForNull;
    
    /**
     * A mutable value of type {@code int}, for multisets to use in tracking counts of values.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    final class Count implements Serializable {
      private int value;
    
      Count(int value) {
        this.value = value;
      }
    
      public int get() {
        return value;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Aug 05 00:40:25 GMT 2021
    - 1.6K bytes
    - Viewed (0)
  3. tests/count_test.go

    		t.Errorf("count with join, got error: %v, count %v", err, count4)
    	}
    
    	var count5 int64
    	if err := DB.Table("users").Where("users.name = ?", user1.Name).Order("name").Count(&count5).Error; err != nil || count5 != 1 {
    		t.Errorf("count with join, got error: %v, count %v", err, count)
    	}
    
    	var count6 int64
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Oct 30 09:15:49 GMT 2023
    - 6.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Multisets.java

          implements Serializable {
        @ParametricNullness private final E element;
        private final int count;
    
        ImmutableEntry(@ParametricNullness E element, int count) {
          this.element = element;
          this.count = count;
          checkNonnegative(count, "count");
        }
    
        @Override
        @ParametricNullness
        public final E getElement() {
          return element;
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java

        return multiset(ImmutableMap.of(value1, count1, value2, count2));
      }
    
      private static <T> ImmutableMultiset<T> multiset(Map<T, Integer> counts) {
        ImmutableMultiset.Builder<T> builder = ImmutableMultiset.builder();
        for (Entry<T, Integer> entry : counts.entrySet()) {
          builder.addCopies(entry.getKey(), entry.getValue());
        }
        return builder.build();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  6. tests/soft_delete_test.go

    		t.Errorf("Should find soft deleted record with Unscoped, but got err %s", err)
    	}
    
    	count = 0
    	if DB.Unscoped().Model(&User{}).Where("name = ?", user.Name).Count(&count).Error != nil || count != 1 {
    		t.Errorf("Count soft deleted record, expects: %v, count: %v", 1, count)
    	}
    
    	age = 0
    	if DB.Unscoped().Model(&User{}).Select("age").Where("name = ?", user.Name).Scan(&age).Error != nil || age != user.Age {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Wed Feb 01 06:40:55 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java

        int strCopyLen = len;
        int pos = 0;
        while (count != 0) {
          if ((count & 1) != 0) {
            System.arraycopy(strCopy, 0, array, pos, strCopyLen);
            pos += strCopyLen;
          }
          count >>= 1;
          if (count != 0) {
            System.arraycopy(strCopy, 0, strCopy, strCopyLen, strCopyLen);
            strCopyLen <<= 1;
          }
        }
        return new String(array);
      }
    
      @Benchmark
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:24:24 GMT 2021
    - 3.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Multiset.java

       * desired count.
       *
       * @param element the element to add or remove occurrences of; may be null only if explicitly
       *     allowed by the implementation
       * @param count the desired count of the element in this multiset
       * @return the count of the element before the operation; possibly zero
       * @throws IllegalArgumentException if {@code count} is negative
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 19.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/EnumMultiset.java

      @Override
      public int setCount(E element, int count) {
        checkIsE(element);
        checkNonnegative(count, "count");
        int index = element.ordinal();
        int oldCount = counts[index];
        counts[index] = count;
        size += count - oldCount;
        if (oldCount == 0 && count > 0) {
          distinctElements++;
        } else if (oldCount > 0 && count == 0) {
          distinctElements--;
        }
        return oldCount;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9K bytes
    - Viewed (0)
  10. docs/en/data/people.yml

    experts:
    - login: Kludex
      count: 598
      avatarUrl: https://avatars.githubusercontent.com/u/7353520?u=62adc405ef418f4b6c8caa93d3eb8ab107bc4927&v=4
      url: https://github.com/Kludex
    - login: dmontagu
      count: 241
      avatarUrl: https://avatars.githubusercontent.com/u/35119617?u=540f30c937a6450812628b9592a1dfe91bbe148e&v=4
      url: https://github.com/dmontagu
    - login: jgould22
      count: 235
    Others
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Apr 01 23:12:23 GMT 2024
    - 56.9K bytes
    - Viewed (0)
Back to top