- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 337 for count (0.15 sec)
-
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) -
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) -
tests/count_test.go
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) -
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) -
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) -
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) -
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) -
guava-testlib/src/com/google/common/collect/testing/google/MultisetCountTester.java
public void testCount_1() { assertEquals("multiset.count(present) didn't return 1", 1, getMultiset().count(e0())); } @CollectionSize.Require(SEVERAL) public void testCount_3() { initThreeCopies(); assertEquals("multiset.count(thriceContained) didn't return 3", 3, getMultiset().count(e0())); } @CollectionFeature.Require(ALLOWS_NULL_QUERIES) public void testCount_nullAbsent() {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 3.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetCountTester.java
public void testCount_1() { assertEquals("multiset.count(present) didn't return 1", 1, getMultiset().count(e0())); } @CollectionSize.Require(SEVERAL) public void testCount_3() { initThreeCopies(); assertEquals("multiset.count(thriceContained) didn't return 3", 3, getMultiset().count(e0())); } @CollectionFeature.Require(ALLOWS_NULL_QUERIES) public void testCount_nullAbsent() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 3.4K bytes - Viewed (0) -
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 Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Feb 09 22:57:07 GMT 2022 - 8.2K bytes - Viewed (0)