Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,828 for pbcopy (0.17 sec)

  1. guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

        Collection<E> siblingCollection = new ArrayList<>();
        siblingCollection.add(sampleElement);
    
        Collection<E> copy = new ArrayList<>();
        // Avoid copy.addAll(collection), which runs afoul of an Android bug in older versions:
        // http://b.android.com/72073 http://r.android.com/98929
        Iterators.addAll(copy, collection.iterator());
    
        try {
          collection.add(sampleElement);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 15K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java

      public void testInverseSerialization() {
        BiMapPair<K, V> pair = new BiMapPair<>(getMap());
        BiMapPair<K, V> copy = SerializableTester.reserialize(pair);
        assertEquals(pair.forward, copy.forward);
        assertEquals(pair.backward, copy.backward);
        assertSame(copy.backward, copy.forward.inverse());
        assertSame(copy.forward, copy.backward.inverse());
      }
    
      private static class BiMapPair<K, V> implements Serializable {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java

      public void testInverseSerialization() {
        BiMapPair<K, V> pair = new BiMapPair<>(getMap());
        BiMapPair<K, V> copy = SerializableTester.reserialize(pair);
        assertEquals(pair.forward, copy.forward);
        assertEquals(pair.backward, copy.backward);
        assertSame(copy.backward, copy.forward.inverse());
        assertSame(copy.forward, copy.backward.inverse());
      }
    
      private static class BiMapPair<K, V> implements Serializable {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/GraphsTest.java

        Graph<Integer> directedGraph = buildDirectedGraph();
    
        Graph<Integer> copy = copyOf(directedGraph);
        assertThat(copy).isEqualTo(directedGraph);
      }
    
      @Test
      public void copyOf_undirectedGraph() {
        Graph<Integer> undirectedGraph = buildUndirectedGraph();
    
        Graph<Integer> copy = copyOf(undirectedGraph);
        assertThat(copy).isEqualTo(undirectedGraph);
      }
    
      @Test
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 24.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/SuppliersTest.java

        // Calls to the original memoized supplier shouldn't affect its copy.
        Object unused = memoizedSupplier.get();
    
        Supplier<Integer> copy = reserialize(memoizedSupplier);
        Object unused2 = memoizedSupplier.get();
    
        CountingSupplier countingCopy =
            (CountingSupplier) ((Suppliers.ExpiringMemoizingSupplier<Integer>) copy).delegate;
        checkExpiration(countingCopy, copy);
      }
    
      @J2ktIncompatible
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/SuppliersTest.java

        // Calls to the original memoized supplier shouldn't affect its copy.
        Object unused = memoizedSupplier.get();
    
        Supplier<Integer> copy = reserialize(memoizedSupplier);
        Object unused2 = memoizedSupplier.get();
    
        CountingSupplier countingCopy =
            (CountingSupplier) ((Suppliers.ExpiringMemoizingSupplier<Integer>) copy).delegate;
        checkExpiration(countingCopy, copy);
      }
    
      @J2ktIncompatible
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/FilesTest.java

        assertTrue(Files.equal(asciiFile, asciiFile));
    
        File temp = createTempFile();
        Files.copy(asciiFile, temp);
        assertTrue(Files.equal(asciiFile, temp));
    
        Files.copy(i18nFile, temp);
        assertTrue(Files.equal(i18nFile, temp));
    
        Files.copy(asciiFile, temp);
        RandomAccessFile rf = new RandomAccessFile(temp, "rw");
        rf.writeByte(0);
        rf.close();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/CartesianList.java

        ImmutableList.Builder<List<E>> axesBuilder = new ImmutableList.Builder<>(lists.size());
        for (List<? extends E> list : lists) {
          List<E> copy = ImmutableList.copyOf(list);
          if (copy.isEmpty()) {
            return ImmutableList.of();
          }
          axesBuilder.add(copy);
        }
        return new CartesianList<>(axesBuilder.build());
      }
    
      CartesianList(ImmutableList<List<E>> axes) {
        this.axes = axes;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

        TreeMultimap<String, Integer> copy = SerializableTester.reserializeAndAssert(multimap);
        assertThat(copy.values()).containsExactly(1, 3, 7, 2, 6, 0, 4).inOrder();
        assertThat(copy.keySet()).containsExactly("foo", "google", "tree").inOrder();
        assertEquals(multimap.keyComparator(), copy.keyComparator());
        assertEquals(multimap.valueComparator(), copy.valueComparator());
      }
    
      @J2ktIncompatible
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableSetFloodingTest.java

            return ImmutableSet.of(o1, o2, o3, o4, o5, o6, rest);
          }
        },
        COPY_OF_ARRAY {
          @Override
          public ImmutableSet<Object> create(List<?> list) {
            return ImmutableSet.copyOf(list.toArray());
          }
        },
        COPY_OF_LIST {
          @Override
          public ImmutableSet<Object> create(List<?> list) {
            return ImmutableSet.copyOf(list);
          }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 2.8K bytes
    - Viewed (0)
Back to top