Search Options

Results per page
Sort
Preferred Languages
Advance

Results 521 - 530 of 2,618 for Value (0.05 sec)

  1. android/guava-testlib/src/com/google/common/testing/RelationshipTester.java

      }
    
      static final class Item<T> {
        final T value;
        final int groupNumber;
        final int itemNumber;
    
        Item(T value, int groupNumber, int itemNumber) {
          this.value = value;
          this.groupNumber = groupNumber;
          this.itemNumber = itemNumber;
        }
    
        @Override
        public String toString() {
          return value + " [group " + (groupNumber + 1) + ", item " + (itemNumber + 1) + ']';
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 25 11:57:12 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  2. callbacks/associations.go

    				distinctElems := reflect.MakeSlice(reflect.SliceOf(fieldType), 0, 10)
    				joins := reflect.MakeSlice(reflect.SliceOf(reflect.PtrTo(rel.JoinTable.ModelType)), 0, 10)
    				objs := []reflect.Value{}
    
    				appendToJoins := func(obj reflect.Value, elem reflect.Value) {
    					joinValue := reflect.New(rel.JoinTable.ModelType)
    					for _, ref := range rel.References {
    						if ref.OwnPrimaryKey {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Apr 11 03:06:13 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class MapMergeTester<K, V> extends AbstractMapTester<K, V> {
      @MapFeature.Require(SUPPORTS_PUT)
      public void testAbsent() {
        assertEquals(
            "Map.merge(absent, value, function) should return value",
            v3(),
            getMap()
                .merge(
                    k3(),
                    v3(),
                    (oldV, newV) -> {
                      throw new AssertionFailedError(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/-MediaTypeCommon.kt

        }
    
        val name = parameter.groups[1]?.value
        if (name == null) {
          s = parameter.range.last + 1
          continue
        }
    
        val token = parameter.groups[2]?.value
        val value =
          when {
            token == null -> {
              // Value is "double-quoted". That's valid and our regex group already strips the quotes.
              parameter.groups[3]!!.value
            }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/graph/MapCacheTest.java

        }
      }
    
      @Test
      public void testPutNewValue() {
        assertThat(mapCache.put("key", "value")).isNull();
        assertThat(mapCache.get("key")).isEqualTo("value"); // ensure key/value is cached
        assertThat(mapCache.put("key", "new value")).isEqualTo("value");
        assertThat(mapCache.get("key")).isEqualTo("new value");
      }
    
      @Test
      public void testRemoveEqualKeyWithDifferentReference() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 16:23:26 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/PathTranslatingPostProcessor.java

        }
    
        public Object execute(String expression, Object value) {
            expression = ValueSourceUtils.trimPrefix(expression, expressionPrefixes, true);
    
            if (projectDir != null && value != null && unprefixedPathKeys.contains(expression)) {
                return pathTranslator.alignToBaseDirectory(String.valueOf(value), projectDir);
            }
    
            return value;
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. build-logic-commons/code-quality-rules/src/main/resources/checkstyle/checkstyle-groovy.xml

    <module name="Checker">
        <module name="SuppressionFilter">
            <property name="file" value="${config_loc}/suppressions.xml"/>
        </module>
        <module name="RegexpHeader">
            <property name="headerFile" value="${config_loc}/required-header.txt"/>
        </module>
        <module name="RegexpSingleline">
            <property name="format" value="File \| Settings \| File Templates"/>
        </module>
        <module name="RegexpSingleline">
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 1.4K bytes
    - Viewed (0)
  8. clause/values.go

    			}
    			builder.WriteQuoted(column)
    		}
    		builder.WriteByte(')')
    
    		builder.WriteString(" VALUES ")
    
    		for idx, value := range values.Values {
    			if idx > 0 {
    				builder.WriteByte(',')
    			}
    
    			builder.WriteByte('(')
    			builder.AddVar(builder, value...)
    			builder.WriteByte(')')
    		}
    	} else {
    		builder.WriteString("DEFAULT VALUES")
    	}
    }
    
    // MergeClause merge values clauses
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sun May 24 03:35:19 UTC 2020
    - 849 bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

      private static class IntHolder implements Serializable {
        public int value;
    
        public IntHolder(int value) {
          this.value = value;
        }
    
        @Override
        public boolean equals(@Nullable Object o) {
          return (o instanceof IntHolder) && ((IntHolder) o).value == value;
        }
    
        @Override
        public int hashCode() {
          return value;
        }
    
        private static final long serialVersionUID = 5;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.6K bytes
    - Viewed (0)
  10. tests/hooks_test.go

    	}
    
    	DB.Create(&products)
    
    	for idx, value := range []int64{200, 300, 400} {
    		if products[idx].Price != value {
    			t.Errorf("invalid price for product #%v, expects: %v, got %v", idx, value, products[idx].Price)
    		}
    	}
    
    	DB.Model(&products).Update("Name", "product-name")
    
    	// will set all product's price to last product's price + 10
    	for idx, value := range []int64{410, 410, 410} {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 17 03:59:06 UTC 2024
    - 16.7K bytes
    - Viewed (0)
Back to top