Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for leash (0.4 sec)

  1. android/guava/src/com/google/common/primitives/Floats.java

       * that this always returns {@code -1} when {@code target} is {@code NaN}.
       *
       * @param array an array of {@code float} values, possibly empty
       * @param target a primitive {@code float} value
       * @return the least index {@code i} for which {@code array[i] == target}, or {@code -1} if no
       *     such index exists.
       */
      public static int indexOf(float[] array, float target) {
        return indexOf(array, target, 0, array.length);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  2. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/OrderingTest.java

      }
    
      /**
       * Requires at least 3 elements in {@code strictlyOrderedElements} in order to test the varargs
       * version of min/max.
       */
      private static <T> void testExhaustively(
          Ordering<? super T> ordering, T... strictlyOrderedElements) {
        checkArgument(
            strictlyOrderedElements.length >= 3,
            "strictlyOrderedElements " + "requires at least 3 elements");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/OrderingTest.java

      }
    
      /**
       * Requires at least 3 elements in {@code strictlyOrderedElements} in order to test the varargs
       * version of min/max.
       */
      private static <T> void testExhaustively(
          Ordering<? super T> ordering, T... strictlyOrderedElements) {
        checkArgument(
            strictlyOrderedElements.length >= 3,
            "strictlyOrderedElements " + "requires at least 3 elements");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/EnumBiMapTest.java

        EnumBiMap<Currency, Country> bimap = EnumBiMap.create(map);
        assertEquals(Country.CANADA, bimap.get(Currency.DOLLAR));
        assertEquals(Currency.DOLLAR, bimap.inverse().get(Country.CANADA));
    
        /* Map must have at least one entry if not an EnumBiMap. */
        try {
          EnumBiMap.create(Collections.<Currency, Country>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
    - 11.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/EnumBiMapTest.java

        EnumBiMap<Currency, Country> bimap = EnumBiMap.create(map);
        assertEquals(Country.CANADA, bimap.get(Currency.DOLLAR));
        assertEquals(Currency.DOLLAR, bimap.inverse().get(Country.CANADA));
    
        /* Map must have at least one entry if not an EnumBiMap. */
        try {
          EnumBiMap.create(Collections.<Currency, Country>emptyMap());
          fail("IllegalArgumentException expected");
        } catch (IllegalArgumentException expected) {
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

       * and accesses that were performed on the map. The queue is drained on writes and when it exceeds
       * its capacity threshold.
       *
       * The Least Recently Used page replacement algorithm was chosen due to its simplicity, high hit
       * rate, and ability to be implemented with O(1) time complexity. The initial LRU implementation
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableSortedSet.java

            sortAndDedup();
            /*
             * Sorting operations can only be allowed to occur once every O(n) operations to keep
             * amortized O(n log n) performance.  Therefore, ensure there are at least O(n) *unused*
             * spaces in the builder array.
             */
            int newLength = ImmutableCollection.Builder.expandedCapacity(n, n + 1);
            if (newLength > elements.length) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 38.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Sets.java

       * collection. If the collection is an {@link EnumSet}, this method has the same behavior as
       * {@link EnumSet#complementOf}. Otherwise, the specified collection must contain at least one
       * element, in order to determine the element type. If the collection could be empty, use {@link
       * #complementOf(Collection, Class)} instead of this method.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/ShortsTest.java

        List<short[]> ordered =
            Arrays.asList(
                new short[] {},
                new short[] {LEAST},
                new short[] {LEAST, LEAST},
                new short[] {LEAST, (short) 1},
                new short[] {(short) 1},
                new short[] {(short) 1, LEAST},
                new short[] {GREATEST, GREATEST - (short) 1},
                new short[] {GREATEST, GREATEST},
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 26.6K bytes
    - Viewed (0)
Back to top