- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 103 for getCount (0.41 sec)
-
guava-tests/test/com/google/common/collect/ForwardingMultisetTest.java
@Override public int hashCode() { return standardHashCode(); } @Override public boolean setCount(T element, int oldCount, int newCount) { return standardSetCount(element, oldCount, newCount); } @Override public int setCount(T element, int count) { return standardSetCount(element, count); } @Override public Set<T> elementSet() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 11.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java
} public void testBuilderSetCount() { ImmutableMultiset<String> multiset = new ImmutableMultiset.Builder<String>().add("a").setCount("a", 2).setCount("b", 3).build(); assertEquals(HashMultiset.create(asList("a", "a", "b", "b", "b")), multiset); } public void testBuilderAddHandlesNullsCorrectly() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 20.8K bytes - Viewed (0) -
cmd/fmt-gen.go
} defer zipFile.Close() fmtZipW := zip.NewWriter(zipFile) defer fmtZipW.Close() for _, pool := range pools { // for each pool setCount, setDriveCount := pool.SetCount, pool.DrivesPerSet format := newFormatErasureV3(setCount, setDriveCount) format.ID = deploymentID for i := 0; i < setCount; i++ { // for each erasure set for j := 0; j < setDriveCount; j++ { newFormat := format.Clone()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 13 22:22:04 UTC 2024 - 3.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ForwardingMultisetTest.java
@Override public int hashCode() { return standardHashCode(); } @Override public boolean setCount(T element, int oldCount, int newCount) { return standardSetCount(element, oldCount, newCount); } @Override public int setCount(T element, int count) { return standardSetCount(element, count); } @Override public Set<T> elementSet() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 11.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/AbstractMultiset.java
throw new UnsupportedOperationException(); } @CanIgnoreReturnValue @Override public int setCount(@ParametricNullness E element, int count) { return setCountImpl(this, element, count); } @CanIgnoreReturnValue @Override public boolean setCount(@ParametricNullness E element, int oldCount, int newCount) { return setCountImpl(this, element, oldCount, newCount); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 01 22:07:10 UTC 2021 - 6K bytes - Viewed (0) -
cmd/format-erasure.go
func initFormatErasure(ctx context.Context, storageDisks []StorageAPI, setCount, setDriveCount int, deploymentID string, sErrs []error) (*formatErasureV3, error) { format := newFormatErasureV3(setCount, setDriveCount) formats := make([]*formatErasureV3, len(storageDisks)) wantAtMost, err := ecDrivesNoConfig(setDriveCount) if err != nil { return nil, err } for i := 0; i < setCount; i++ { hostCount := make(map[string]int, setDriveCount)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 23.2K bytes - Viewed (0) -
cmd/erasure-sets.go
s := &erasureSets{ sets: make([]*erasureObjects, setCount), erasureDisks: make([][]StorageAPI, setCount), erasureLockers: make([][]dsync.NetLocker, setCount), erasureLockOwner: globalLocalNodeName, endpoints: endpoints, endpointStrings: endpointStrings, setCount: setCount, setDriveCount: setDriveCount, defaultParityCount: defaultParityCount,
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 27 10:41:37 UTC 2024 - 37K bytes - Viewed (1) -
android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java
} @CanIgnoreReturnValue @Override public final int setCount(@ParametricNullness E element, int count) { checkNonnegative(count, "count"); int oldCount = (count == 0) ? backingMap.remove(element) : backingMap.put(element, count); size += (count - oldCount); return oldCount; } @Override public final boolean setCount(@ParametricNullness E element, int oldCount, int newCount) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Mar 06 16:06:58 UTC 2023 - 8.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java
when(backingMap.remove(KEY, current)).thenReturn(true); assertEquals(countToRemove, multiset.setCount(KEY, 0)); assertEquals(0, current.get()); } public void testSetCount_0_nonePresent() { when(backingMap.get(KEY)).thenReturn(null); assertEquals(0, multiset.setCount(KEY, 0)); } public void testCreate() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 14.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ConcurrentHashMultisetBasherTest.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 5.9K bytes - Viewed (0)