Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for removeEntry (0.2 sec)

  1. cmd/lock-rest-server-common_test.go

    		lockRequesterInfo1,
    		lockRequesterInfo2,
    	}
    
    	lri := locker.ll.lockMap["name"]
    
    	// test unknown uid
    	if locker.ll.removeEntry("name", dsync.LockArgs{
    		Owner: "owner",
    		UID:   "unknown-uid",
    	}, &lri) {
    		t.Errorf("Expected %#v, got %#v", false, true)
    	}
    
    	if !locker.ll.removeEntry("name", dsync.LockArgs{
    		Owner: "owner",
    		UID:   "0123-4567",
    	}, &lri) {
    		t.Errorf("Expected %#v, got %#v", true, false)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

        if (oldCount > occurrences) {
          numberRemoved = occurrences;
          backingMap.setValue(entryIndex, oldCount - occurrences);
        } else {
          numberRemoved = oldCount;
          backingMap.removeEntry(entryIndex);
        }
        size -= numberRemoved;
        return oldCount;
      }
    
      @CanIgnoreReturnValue
      @Override
      public final int setCount(@ParametricNullness E element, int count) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 8.2K bytes
    - Viewed (0)
Back to top