Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 69 for leash (0.12 sec)

  1. android/guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java

        // one. (StringCoding$StringDecoder vs. StreamDecoder).  StringCoding has a ton of special cases
        // theoretically we could duplicate all that logic here to try to beat 'new String' or at least
        // come close.
        USING_DECODER_WITH_SIZE_HINT {
          @Override
          String read(ByteSource byteSource, Charset cs) throws IOException {
            Optional<Long> size = byteSource.sizeIfKnown();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableClassToInstanceMapTest.java

        assertEquals(0, (int) ictim.getInstance(Integer.class));
        assertEquals(1, (int) ictim.getInstance(int.class));
      }
    
      @SuppressWarnings("rawtypes") // TODO(cpovirk): Can we at least use Class<?> in some places?
      abstract static class TestClassToInstanceMapGenerator implements TestMapGenerator<Class, Impl> {
    
        @Override
        public Class<?>[] createKeyArray(int length) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/EnumBiMap.java

      /**
       * Returns a new bimap with the same mappings as the specified map. If the specified map is an
       * {@code EnumBiMap}, the new bimap has the same types as the provided map. Otherwise, the
       * specified map must contain at least one mapping, in order to determine the key and value types.
       *
       * @param map the map whose mappings are to be placed in this map
       * @throws IllegalArgumentException if map is not an {@code EnumBiMap} instance and contains no
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 6.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/EnumHashBiMapTest.java

        EnumHashBiMap<Currency, String> bimap = EnumHashBiMap.create(map);
        assertEquals("dollar", bimap.get(Currency.DOLLAR));
        assertEquals(Currency.DOLLAR, bimap.inverse().get("dollar"));
    
        /* Map must have at least one entry if not an EnumHashBiMap. */
        try {
          EnumHashBiMap.create(Collections.<Currency, String>emptyMap());
          fail("IllegalArgumentException expected");
        } catch (IllegalArgumentException expected) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/RegularContiguousSet.java

      @GwtIncompatible // not used by GWT emulation
      @Override
      int indexOf(@CheckForNull Object target) {
        if (!contains(target)) {
          return -1;
        }
        // The cast is safe because of the contains checkā€”at least for any reasonable Comparable class.
        @SuppressWarnings("unchecked")
        // requireNonNull is safe because of the contains check.
        C c = (C) requireNonNull(target);
        return (int) domain.distance(first(), c);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java

          this.elements = elements;
          this.duplicate = duplicate;
        }
      }
    
      /**
       * @return an array of the proper size with a duplicate element. The size must be at least three.
       */
      protected ArrayWithDuplicate<E> createArrayWithDuplicateElement() {
        E[] elements = createSamplesArray();
        E duplicate = elements[(elements.length / 2) - 1];
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/FarmHashFingerprint64.java

    /**
     * Implementation of FarmHash Fingerprint64, an open-source fingerprinting algorithm for strings.
     *
     * <p>Its speed is comparable to CityHash64, and its quality of hashing is at least as good.
     *
     * <p>Note to maintainers: This implementation relies on signed arithmetic being bit-wise equivalent
     * to unsigned arithmetic in all cases except:
     *
     * <ul>
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Apr 01 22:39:48 GMT 2022
    - 7.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/SignedBytesTest.java

        List<byte[]> ordered =
            Arrays.asList(
                new byte[] {},
                new byte[] {LEAST},
                new byte[] {LEAST, LEAST},
                new byte[] {LEAST, (byte) 1},
                new byte[] {(byte) 1},
                new byte[] {(byte) 1, LEAST},
                new byte[] {GREATEST, GREATEST - (byte) 1},
                new byte[] {GREATEST, GREATEST},
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/AbstractNonStreamingHashFunctionTest.java

        // the output, so the input must be at least 32 bits, since the output has to be that long
        assertPutString(new char[] {'p', HashTestUtils.randomLowSurrogate(new Random())});
      }
    
      public void testPutStringWithHighSurrogate() {
        // we pad because the dummy hash function we use to test this, merely copies the input into
        // the output, so the input must be at least 32 bits, since the output has to be that long
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/hash/AbstractNonStreamingHashFunctionTest.java

        // the output, so the input must be at least 32 bits, since the output has to be that long
        assertPutString(new char[] {'p', HashTestUtils.randomLowSurrogate(new Random())});
      }
    
      public void testPutStringWithHighSurrogate() {
        // we pad because the dummy hash function we use to test this, merely copies the input into
        // the output, so the input must be at least 32 bits, since the output has to be that long
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (0)
Back to top