Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for newValue2 (0.12 sec)

  1. schema/field_test.go

    			t.Errorf("no error should happen when assign value to field %v, but got %v", k, err)
    		}
    	}
    	newValues["updated_at"] = time.Time{}
    	newValues["active"] = false
    	checkField(t, userSchema, reflectValue, newValues)
    
    	// test valuer and other type
    	age := myint(10)
    	var nilTime *time.Time
    	newValues2 := map[string]interface{}{
    		"name":       sql.NullString{String: "valuer_and_setter_3", Valid: true},
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Feb 19 09:02:53 UTC 2022
    - 12.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/LinkedListMultimap.java

        List<V> oldValues = getCopy(key);
        ListIterator<V> keyValues = new ValueForKeyIterator(key);
        Iterator<? extends V> newValues = values.iterator();
    
        // Replace existing values, if any.
        while (keyValues.hasNext() && newValues.hasNext()) {
          keyValues.next();
          keyValues.set(newValues.next());
        }
    
        // Remove remaining old values, if any.
        while (keyValues.hasNext()) {
          keyValues.next();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 27.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Count.java

        value += delta;
      }
    
      public int addAndGet(int delta) {
        return value += delta;
      }
    
      public void set(int newValue) {
        value = newValue;
      }
    
      public int getAndSet(int newValue) {
        int result = value;
        value = newValue;
        return result;
      }
    
      @Override
      public int hashCode() {
        return value;
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Aug 05 00:40:25 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetBasherTest.java

                }
              case SET_COUNT:
                {
                  int newValue = random.nextInt(3);
                  int oldValue = multiset.setCount(key, newValue);
                  deltas[keyIndex] += (newValue - oldValue);
                  break;
                }
              case SET_COUNT_IF:
                {
                  int newValue = random.nextInt(3);
                  int oldValue = multiset.count(key);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/AbstractLoadingCacheTest.java

            assertThrows(UncheckedExecutionException.class, () -> cache.getUnchecked(new Object()));
        assertThat(expected).hasCauseThat().isEqualTo(cause);
    
        Object newValue = new Object();
        valueRef.set(newValue);
        assertSame(newValue, cache.getUnchecked(new Object()));
      }
    
      public void testGetUnchecked_unchecked() {
        final RuntimeException cause = new RuntimeException();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

        String key = "key";
        long newValue = random.nextInt(MAX_ADDEND);
        for (int i = 0; i < ITERATIONS; i++) {
          long before = map.get(key);
          long result = map.put(key, newValue);
          long after = map.get(key);
          assertEquals(newValue, after);
          assertEquals(before, result);
          newValue += newValue;
        }
        assertEquals(1, map.size());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/AbstractLoadingCacheTest.java

            assertThrows(UncheckedExecutionException.class, () -> cache.getUnchecked(new Object()));
        assertThat(expected).hasCauseThat().isEqualTo(cause);
    
        Object newValue = new Object();
        valueRef.set(newValue);
        assertSame(newValue, cache.getUnchecked(new Object()));
      }
    
      public void testGetUnchecked_unchecked() {
        final RuntimeException cause = new RuntimeException();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/AtomicLongMap.java

                return delta;
              }
              // atomic replaced
              continue outer;
            }
    
            long newValue = oldValue + delta;
            if (atomic.compareAndSet(oldValue, newValue)) {
              return newValue;
            }
            // value changed
          }
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/cache/LocalCache.java

            }
    
            newValue = computingValueReference.compute(key, function);
            if (newValue != null) {
              if (valueReference != null && newValue == valueReference.get()) {
                computingValueReference.set(newValue);
                e.setValueReference(valueReference);
                recordWrite(e, 0, now); // no change in weight
                return newValue;
              }
              try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java

        doTestSet(e3());
      }
    
      private void doTestSet(E newValue) {
        int index = aValidIndex();
        E initialValue = getList().get(index);
        assertEquals(
            "set(i, x) should return the old element at position i.",
            initialValue,
            getList().set(index, newValue));
        assertEquals("After set(i, x), get(i) should return x", newValue, getList().get(index));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top