Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for conker (0.27 sec)

  1. android/guava/src/com/google/common/base/Preconditions.java

     * allocations in many common cases.
     *
     * <p>The message string is not formatted unless the exception will be thrown, so the cost of the
     * string formatting itself should not be a concern.
     *
     * <p>As with any performance concerns, you should consider profiling your code (in a production
     * environment if possible) before spending a lot of effort on tweaking a particular element.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Converter.java

     * </ul>
     *
     * <p>Using a converter:
     *
     * <ul>
     *   <li>Convert one instance in the "forward" direction using {@code converter.convert(a)}.
     *   <li>Convert multiple instances "forward" using {@code converter.convertAll(as)}.
     *   <li>Convert in the "backward" direction using {@code converter.reverse().convert(b)} or {@code
     *       converter.reverse().convertAll(bs)}.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/LongsTest.java

      }
    
      public void testStringConverter_convert() {
        Converter<String, Long> converter = Longs.stringConverter();
        assertThat(converter.convert("1")).isEqualTo((Long) 1L);
        assertThat(converter.convert("0")).isEqualTo((Long) 0L);
        assertThat(converter.convert("-1")).isEqualTo((Long) (-1L));
        assertThat(converter.convert("0xff")).isEqualTo((Long) 255L);
        assertThat(converter.convert("0xFF")).isEqualTo((Long) 255L);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/LongsTest.java

      }
    
      public void testStringConverter_convert() {
        Converter<String, Long> converter = Longs.stringConverter();
        assertThat(converter.convert("1")).isEqualTo((Long) 1L);
        assertThat(converter.convert("0")).isEqualTo((Long) 0L);
        assertThat(converter.convert("-1")).isEqualTo((Long) (-1L));
        assertThat(converter.convert("0xff")).isEqualTo((Long) 255L);
        assertThat(converter.convert("0xFF")).isEqualTo((Long) 255L);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/DoublesTest.java

      }
    
      public void testStringConverter_convert() {
        Converter<String, Double> converter = Doubles.stringConverter();
        assertThat(converter.convert("1.0")).isEqualTo((Double) 1.0);
        assertThat(converter.convert("0.0")).isEqualTo((Double) 0.0);
        assertThat(converter.convert("-1.0")).isEqualTo((Double) (-1.0));
        assertThat(converter.convert("1")).isEqualTo((Double) 1.0);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 31.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

      }
    
      public void testStringConverter_convert() {
        Converter<String, Double> converter = Doubles.stringConverter();
        assertThat(converter.convert("1.0")).isEqualTo((Double) 1.0);
        assertThat(converter.convert("0.0")).isEqualTo((Double) 0.0);
        assertThat(converter.convert("-1.0")).isEqualTo((Double) (-1.0));
        assertThat(converter.convert("1")).isEqualTo((Double) 1.0);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 31.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals((Integer) 1, converter.convert("one"));
        assertEquals((Integer) 2, converter.convert("two"));
        try {
          converter.convert("three");
          fail();
        } catch (IllegalArgumentException expected) {
        }
    
        biMap.put("three", 3);
    
        assertEquals((Integer) 1, converter.convert("one"));
        assertEquals((Integer) 2, converter.convert("two"));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals((Integer) 1, converter.convert("one"));
        assertEquals((Integer) 2, converter.convert("two"));
        try {
          converter.convert("three");
          fail();
        } catch (IllegalArgumentException expected) {
        }
    
        biMap.put("three", 3);
    
        assertEquals((Integer) 1, converter.convert("one"));
        assertEquals((Integer) 2, converter.convert("two"));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

              if (newValue == 0) {
                // Just CASed to 0; remove the entry to clean up the map. If the removal fails,
                // another thread has already replaced it with a new counter, which is fine.
                countMap.remove(element, existingCounter);
              }
              return oldValue;
            }
          } else {
            return 0;
          }
        }
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

      @GwtIncompatible // threads
      public void testOverflowTimeout() throws Exception {
        // First, sanity check that naive multiplication would really overflow to a negative number:
        long nanosPerSecond = NANOSECONDS.convert(1, SECONDS);
        assertThat(nanosPerSecond * Long.MAX_VALUE).isLessThan(0L);
    
        // Check that we wait long enough anyway (presumably as long as MAX_VALUE nanos):
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 15.5K bytes
    - Viewed (0)
Back to top