Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 124 for Peal (0.12 sec)

  1. android/guava-tests/test/com/google/common/primitives/BytesTest.java

        assertThat(newArray).isEqualTo(new byte[] {(byte) 0, (byte) 1, (byte) 2});
        newArray[1] = (byte) 5;
        assertThat((byte) list.get(1)).isEqualTo((byte) 1);
      }
    
      // This test stems from a real bug found by andrewk
      public void testAsList_subList_toArray_roundTrip() {
        byte[] array = {(byte) 0, (byte) 1, (byte) 2, (byte) 3};
        List<Byte> list = Bytes.asList(array);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableSet.java

       * k <= i < n}.
       *
       * <p>After this method returns, {@code elements} will contain no duplicates, but {@code elements}
       * may be the real array backing the returned set, so do not modify it further.
       *
       * <p>{@code elements} may contain only values of type {@code E}.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/Network.java

     * </ul>
     *
     * @author James Sexton
     * @author Joshua O'Madadhain
     * @param <N> Node parameter type
     * @param <E> Edge parameter type
     * @since 20.0
     */
    @Beta
    @DoNotMock("Use NetworkBuilder to create a real instance")
    @ElementTypesAreNonnullByDefault
    public interface Network<N, E> extends SuccessorsFunction<N>, PredecessorsFunction<N> {
      //
      // Network-level accessors
      //
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 21.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/IntsTest.java

        list.set(0, (int) 4);
        assertThat(newArray).isEqualTo(new int[] {(int) 0, (int) 1, (int) 2});
        newArray[1] = (int) 5;
        assertThat((int) list.get(1)).isEqualTo((int) 1);
      }
    
      // This test stems from a real bug found by andrewk
      public void testAsList_subList_toArray_roundTrip() {
        int[] array = {(int) 0, (int) 1, (int) 2, (int) 3};
        List<Integer> list = Ints.asList(array);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 28.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableList.java

      public int hashCode() {
        int hashCode = 1;
        int n = size();
        for (int i = 0; i < n; i++) {
          hashCode = 31 * hashCode + get(i).hashCode();
    
          hashCode = ~~hashCode;
          // needed to deal with GWT integer overflow
        }
        return hashCode;
      }
    
      /*
       * Serializes ImmutableLists as their logical contents. This ensures that
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/CharsTest.java

        assertThat(newArray).isEqualTo(new char[] {(char) 0, (char) 1, (char) 2});
        newArray[1] = (char) 5;
        assertThat((char) list.get(1)).isEqualTo((char) 1);
      }
    
      // This test stems from a real bug found by andrewk
      public void testAsList_subList_toArray_roundTrip() {
        char[] array = {(char) 0, (char) 1, (char) 2, (char) 3};
        List<Character> list = Chars.asList(array);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 24.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/cache/CacheBuilder.java

     *             return createExpensiveGraph(key);
     *           }
     *         });
     * }</pre>
     *
     * <p>Or equivalently,
     *
     * <pre>{@code
     * // In real life this would come from a command-line flag or config file
     * String spec = "maximumSize=10000,expireAfterWrite=10m";
     *
     * LoadingCache<Key, Graph> graphs = CacheBuilder.from(spec)
     *     .removalListener(MY_LISTENER)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java

        suite.addTestSuite(MutableTypeToInstanceMapTest.class);
    
        suite.addTest(
            MapTestSuiteBuilder.using(
                    new TestTypeToInstanceMapGenerator() {
                      // Other tests will verify what real, warning-free usage looks like
                      // but here we have to do some serious fudging
                      @Override
                      @SuppressWarnings({"unchecked", "rawtypes"})
    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)
  9. android/guava/src/com/google/common/escape/CharEscaper.java

       * than a one-character array containing the character itself. This enables the escaping algorithm
       * to perform more efficiently.
       *
       * <p>An escaper is expected to be able to deal with any {@code char} value, so this method should
       * not throw any exceptions.
       *
       * @param c the character to escape if necessary
       * @return the replacement characters, or {@code null} if no escaping was needed
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 6.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/UnsignedLongs.java

         * guaranteed to be either exact or one less than the correct value. This follows from fact that
         * floor(floor(x)/i) == floor(x/i) for any real x and integer i != 0. The proof is not quite
         * trivial.
         */
        long quotient = ((dividend >>> 1) / divisor) << 1;
        long rem = dividend - quotient * divisor;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 17.6K bytes
    - Viewed (0)
Back to top