Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for FromInt (0.15 sec)

  1. guava-tests/test/com/google/common/hash/HashCodeTest.java

      public void testFromInt() {
        for (ExpectedHashCode expected : expectedHashCodes) {
          if (expected.bytes.length == 4) {
            HashCode fromInt = HashCode.fromInt(expected.asInt);
            assertExpectedHashCode(expected, fromInt);
          }
        }
      }
    
      // expectedHashCodes must contain at least one hash code with 8 bytes
      public void testFromLong() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/HashingTest.java

                      ImmutableList.of(HashCode.fromInt(32), HashCode.fromLong(32L)));
            });
      }
    
      public void testCombineUnordered() {
        HashCode hash31 = HashCode.fromInt(31);
        HashCode hash32 = HashCode.fromInt(32);
        assertEquals(hash32, Hashing.combineUnordered(ImmutableList.of(hash32)));
        assertEquals(HashCode.fromInt(64), Hashing.combineUnordered(ImmutableList.of(hash32, hash32)));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

      public void testFromInt() {
        for (ExpectedHashCode expected : expectedHashCodes) {
          if (expected.bytes.length == 4) {
            HashCode fromInt = HashCode.fromInt(expected.asInt);
            assertExpectedHashCode(expected, fromInt);
          }
        }
      }
    
      // expectedHashCodes must contain at least one hash code with 8 bytes
      public void testFromLong() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/HashingTest.java

                      ImmutableList.of(HashCode.fromInt(32), HashCode.fromLong(32L)));
            });
      }
    
      public void testCombineUnordered() {
        HashCode hash31 = HashCode.fromInt(31);
        HashCode hash32 = HashCode.fromInt(32);
        assertEquals(hash32, Hashing.combineUnordered(ImmutableList.of(hash32)));
        assertEquals(HashCode.fromInt(64), Hashing.combineUnordered(ImmutableList.of(hash32, hash32)));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
  5. internal/s3select/sql/aggregation.go

    	seen bool
    }
    
    func newAggVal(fn FuncName) *aggVal {
    	switch fn {
    	case aggFnAvg, aggFnSum:
    		return &aggVal{runningSum: FromFloat(0)}
    	case aggFnMin:
    		return &aggVal{runningMin: FromInt(0)}
    	case aggFnMax:
    		return &aggVal{runningMax: FromInt(0)}
    	default:
    		return &aggVal{}
    	}
    }
    
    // evalAggregationNode - performs partial computation using the
    // current row and stores the result.
    //
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  6. internal/s3select/sql/evaluate.go

    	switch rval := result.(type) {
    	case string:
    		return FromString(rval), nil
    	case float64:
    		return FromFloat(rval), nil
    	case int64:
    		return FromInt(rval), nil
    	case uint64:
    		if rval <= math.MaxInt64 {
    			return FromInt(int64(rval)), nil
    		}
    		return FromFloat(float64(rval)), nil
    	case bool:
    		return FromBool(rval), nil
    	case jstream.KVS:
    		bs, err := json.Marshal(result)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 12K bytes
    - Viewed (0)
  7. internal/s3select/sql/value_test.go

    	FromNull,
    	func() *Value {
    		return FromBool(true)
    	},
    	func() *Value {
    		return FromBytes([]byte("byte contents"))
    	},
    	func() *Value {
    		return FromFloat(math.Pi)
    	},
    	func() *Value {
    		return FromInt(0x1337)
    	},
    	func() *Value {
    		t, err := time.Parse(time.RFC3339, "2006-01-02T15:04:05Z")
    		if err != nil {
    			panic(err)
    		}
    		return FromTimestamp(t)
    	},
    	func() *Value {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  8. istioctl/pkg/describe/describe_test.go

    						Selector: map[string]string{
    							"app": "productpage",
    						},
    						Ports: []corev1.ServicePort{
    							{
    								Name:       "http",
    								Port:       9080,
    								TargetPort: intstr.FromInt(9080),
    							},
    						},
    					},
    				},
    				&corev1.Service{
    					ObjectMeta: metav1.ObjectMeta{
    						Name:      "istio-ingressgateway",
    						Namespace: "default",
    					},
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Mar 28 09:54:01 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java

      private static HashCode fmix(int h1, int length) {
        h1 ^= length;
        h1 ^= h1 >>> 16;
        h1 *= 0x85ebca6b;
        h1 ^= h1 >>> 13;
        h1 *= 0xc2b2ae35;
        h1 ^= h1 >>> 16;
        return HashCode.fromInt(h1);
      }
    
      private static final class Murmur3_32Hasher extends AbstractHasher {
        private int h1;
        private long buffer;
        private int shift;
        private int length;
        private boolean isDone;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 11.9K bytes
    - Viewed (0)
  10. cni/pkg/nodeagent/net_test.go

    					Port: intstr.FromString("foo-2-port"),
    				},
    			},
    		},
    		StartupProbe: &corev1.Probe{
    			ProbeHandler: corev1.ProbeHandler{
    				HTTPGet: &corev1.HTTPGetAction{
    					Port: intstr.FromInt(7777),
    				},
    			},
    		},
    	}
    
    	containers := []corev1.Container{app1}
    
    	var podStatus corev1.PodStatus
    	if v6IP {
    		podStatus = corev1.PodStatus{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 16.4K bytes
    - Viewed (0)
Back to top