Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 383 for valueOf (0.15 sec)

  1. guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java

          for (BoundType type : BoundType.values()) {
            builder.add(Range.upTo(i, type));
            builder.add(Range.downTo(i, type));
          }
        }
    
        // Add two-ended ranges
        for (int i = MIN_BOUND; i <= MAX_BOUND; i++) {
          for (int j = i + 1; j <= MAX_BOUND; j++) {
            for (BoundType lowerType : BoundType.values()) {
              for (BoundType upperType : BoundType.values()) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/xml/XmlEscapersTest.java

            assertEscaping(xmlEscaper, "&apos;", ch);
          } else if (shouldEscapeQuotes && ch == '"') {
            assertEscaping(xmlEscaper, "&quot;", ch);
          } else {
            String input = String.valueOf(ch);
            String escaped = xmlEscaper.escape(input);
            assertEquals(
                "char 0x" + Integer.toString(ch, 16) + " should not be escaped", input, escaped);
          }
        }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/AbstractFilteredMapTest.java

        Predicate<Entry<?, ?>> predicate =
            new Predicate<Entry<?, ?>>() {
              @Override
              public boolean apply(Entry<?, ?> input) {
                return "cat".equals(input.getKey()) || Integer.valueOf(2) == input.getValue();
              }
            };
        Map<String, Integer> filtered = Maps.filterEntries(unfiltered, predicate);
        assertEquals(ImmutableMap.of("cat", 3, "dog", 2), filtered);
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/AbstractFilteredMapTest.java

        Predicate<Entry<?, ?>> predicate =
            new Predicate<Entry<?, ?>>() {
              @Override
              public boolean apply(Entry<?, ?> input) {
                return "cat".equals(input.getKey()) || Integer.valueOf(2) == input.getValue();
              }
            };
        Map<String, Integer> filtered = Maps.filterEntries(unfiltered, predicate);
        assertEquals(ImmutableMap.of("cat", 3, "dog", 2), filtered);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Defaults.java

            return (T) Character.valueOf('\0');
          } else if (type == byte.class) {
            return (T) Byte.valueOf((byte) 0);
          } else if (type == short.class) {
            return (T) Short.valueOf((short) 0);
          } else if (type == int.class) {
            return (T) Integer.valueOf(0);
          } else if (type == long.class) {
            return (T) Long.valueOf(0L);
          } else if (type == float.class) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java

        EqualsTester equalsTester = new EqualsTester();
        for (int a : TEST_INTS) {
          long value = a & 0xffffffffL;
          equalsTester.addEqualityGroup(
              UnsignedInteger.fromIntBits(a),
              UnsignedInteger.valueOf(value),
              UnsignedInteger.valueOf(Long.toString(value)),
              UnsignedInteger.valueOf(Long.toString(value, 16), 16));
        }
        equalsTester.testEquals();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java

        assertThrows(
            UnsupportedOperationException.class,
            () -> map.put(TypeToken.of(Integer.class), Integer.valueOf(5)));
      }
    
      public void testPutAllThrows() {
        assertThrows(
            UnsupportedOperationException.class,
            () -> map.putAll(ImmutableMap.of(TypeToken.of(Integer.class), Integer.valueOf(5))));
      }
    
      public void testEntrySetMutationThrows() {
        map.putInstance(String.class, "test");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/ObjectsTest.java

        assertFalse(Objects.equal("1", 1));
      }
    
      public void testHashCode() throws Exception {
        int h1 = Objects.hashCode(1, "two", 3.0);
        int h2 = Objects.hashCode(Integer.valueOf(1), new String("two"), Double.valueOf(3.0));
        // repeatable
        assertEquals(h1, h2);
    
        // These don't strictly need to be true, but they're nice properties.
        assertTrue(Objects.hashCode(1, 2, null) != Objects.hashCode(1, 2));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  9. guava-tests/benchmark/com/google/common/collect/MinMaxPriorityQueueBenchmark.java

        public BigInteger apply(Integer from) {
          BigInteger v = BigInteger.valueOf(from);
          // Math.sin is very slow for values outside 4*pi
          // Need to take absolute value to avoid inverting the value.
          for (double i = 0; i < 100; i += 20) {
            v =
                v.add(
                    v.multiply(
                        BigInteger.valueOf(((Double) Math.abs(Math.sin(i) * 10.0)).longValue())));
          }
          return v;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/CacheReferencesTest.java

          Key key1 = new Key(1);
          String value1 = key1.toString();
          Key key2 = new Key(2);
          String value2 = key2.toString();
          assertSame(value1, cache.getUnchecked(key1));
          assertSame(value2, cache.getUnchecked(key2));
          assertEquals(ImmutableSet.of(key1, key2), cache.asMap().keySet());
          assertThat(cache.asMap().values()).containsExactly(value1, value2);
          assertEquals(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 6.1K bytes
    - Viewed (0)
Back to top