Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 115 for Peal (0.13 sec)

  1. 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)
  2. android/guava/src/com/google/common/io/CharStreams.java

        // The most common case is that from is a Reader (like InputStreamReader or StringReader) so
        // take advantage of that.
        if (from instanceof Reader) {
          // optimize for common output types which are optimized to deal with char[]
          if (to instanceof StringBuilder) {
            return copyReaderToBuilder((Reader) from, (StringBuilder) to);
          } else {
            return copyReaderToWriter((Reader) from, asWriter(to));
          }
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 10.9K 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/collect/TreeMultisetTest.java

    import junit.framework.Test;
    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Unit test for {@link TreeMultiset}.
     *
     * @author Neal Kanodia
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public class TreeMultisetTest extends TestCase {
    
      @J2ktIncompatible
      @GwtIncompatible // suite
      public static Test suite() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

    import java.util.Collection;
    import java.util.List;
    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.Set;
    import junit.framework.TestCase;
    
    /**
     * {@link LoadingCache} tests that deal with caches that actually contain some key-value mappings.
     *
     * @author mike nonemacher
     */
    
    public class PopulatedCachesTest extends TestCase {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15K bytes
    - Viewed (0)
  8. 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)
  9. android/guava/src/com/google/common/base/Verify.java

     * except that they are always enabled. These methods should be used instead of Java assertions
     * whenever there is a chance the check may fail "in real life". Example:
     *
     * <pre>{@code
     * Bill bill = remoteService.getLastUnpaidBill();
     *
     * // In case bug 12345 happens again we'd rather just die
     * Verify.verify(bill.status() == Status.UNPAID,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon May 17 14:07:47 GMT 2021
    - 18.5K bytes
    - Viewed (0)
  10. 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)
Back to top