Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 141 for compact (0.16 sec)

  1. android/guava/src/com/google/common/hash/BloomFilter.java

     * that {@linkplain #mightContain(Object)} will erroneously return {@code true} for an object that
     * has not actually been put in the {@code BloomFilter}.
     *
     * <p>Bloom filters are serializable. They also support a more compact serial representation via the
     * {@link #writeTo} and {@link #readFrom} methods. Both serialized forms will continue to be
     * supported by future versions of this library. However, serial forms generated by newer versions
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

              E auntElement = elementData(auntIndex);
              if (ordering.compare(auntElement, parentElement) < 0) {
                parentIndex = auntIndex;
                parentElement = auntElement;
              }
            }
          }
          if (ordering.compare(parentElement, x) < 0) {
            queue[index] = parentElement;
            queue[parentIndex] = x;
            return parentIndex;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 34K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/net/MediaType.java

       */
      public static final MediaType JAVASCRIPT_UTF_8 =
          createConstantUtf8(APPLICATION_TYPE, "javascript");
    
      /**
       * For <a href="https://tools.ietf.org/html/rfc7515">JWS or JWE objects using the Compact
       * Serialization</a>.
       *
       * @since 27.1
       */
      public static final MediaType JOSE = createConstant(APPLICATION_TYPE, "jose");
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Aug 07 16:17:10 GMT 2023
    - 46.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/Striped.java

     * either of these extremes, {@code Striped} allows the user to trade between required concurrency
     * and memory footprint. For example, if a set of tasks are CPU-bound, one could easily create a
     * very compact {@code Striped<Lock>} of {@code availableProcessors() * 4} stripes, instead of
     * possibly thousands of locks which could be created in a {@code Map<K, Lock>} structure.
     *
     * @author Dimitris Andreou
     * @since 13.0
     */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 10 20:55:18 GMT 2023
    - 20.3K bytes
    - Viewed (1)
  5. guava-tests/test/com/google/common/collect/OrderingTest.java

        }
      }
    
      public void testExplicit_two() {
        Comparator<Integer> c = Ordering.explicit(42, 5);
        assertEquals(0, c.compare(5, 5));
        assertTrue(c.compare(5, 42) > 0);
        assertTrue(c.compare(42, 5) < 0);
        try {
          c.compare(5, 666);
          fail();
        } catch (IncomparableValueException expected) {
          assertEquals(666, expected.value);
        }
        new EqualsTester()
    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)
  6. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        }
      }
    
      public void testExplicit_two() {
        Comparator<Integer> c = Ordering.explicit(42, 5);
        assertEquals(0, c.compare(5, 5));
        assertTrue(c.compare(5, 42) > 0);
        assertTrue(c.compare(42, 5) < 0);
        try {
          c.compare(5, 666);
          fail();
        } catch (IncomparableValueException expected) {
          assertEquals(666, expected.value);
        }
        new EqualsTester()
    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)
  7. android/guava/src/com/google/common/primitives/UnsignedBytes.java

       *
       * @param a the first {@code byte} to compare
       * @param b the second {@code byte} to compare
       * @return a negative value if {@code a} is less than {@code b}; a positive value if {@code a} is
       *     greater than {@code b}; or zero if they are equal
       */
      public static int compare(byte a, byte b) {
        return toInt(a) - toInt(b);
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 18.3K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/Helpers.java

            assertTrue(
                comparator + ".compare(" + lesser + ", " + t + ")", comparator.compare(lesser, t) < 0);
          }
    
          assertEquals(comparator + ".compare(" + t + ", " + t + ")", 0, comparator.compare(t, t));
    
          for (int j = i + 1; j < valuesInExpectedOrder.size(); j++) {
            T greater = valuesInExpectedOrder.get(j);
            assertTrue(
                comparator + ".compare(" + greater + ", " + t + ")",
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 17.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/UnsignedInts.java

       *
       * @param a the first unsigned {@code int} to compare
       * @param b the second unsigned {@code int} to compare
       * @return a negative value if {@code a} is less than {@code b}; a positive value if {@code a} is
       *     greater than {@code b}; or zero if they are equal
       */
      public static int compare(int a, int b) {
        return Ints.compare(flip(a), flip(b));
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

            byte[] right = left.clone();
            assertThat(comparator.compare(left, right)).isEqualTo(0);
            int i = rnd.nextInt(left.length);
            left[i] ^= (byte) (1 + rnd.nextInt(255));
            assertThat(comparator.compare(left, right)).isNotEqualTo(0);
            assertThat(UnsignedBytes.compare(left[i], right[i]) > 0)
                .isEqualTo(comparator.compare(left, right) > 0);
          }
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.4K bytes
    - Viewed (0)
Back to top