Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 225 for original (0.17 sec)

  1. guava-tests/test/com/google/common/collect/LenientSerializableTester.java

      static <E> Set<E> reserializeAndAssertLenient(Set<E> original) {
        Set<E> copy = reserialize(original);
        assertEquals(original, copy);
        assertTrue(copy instanceof ImmutableSet);
        return copy;
      }
    
      @CanIgnoreReturnValue
      @GwtIncompatible // SerializableTester
      static <E> Multiset<E> reserializeAndAssertLenient(Multiset<E> original) {
        Multiset<E> copy = reserialize(original);
        assertEquals(original, copy);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Aug 04 15:33:27 GMT 2020
    - 2.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

        assertSame(Ordering.natural(), copy.comparator());
      }
    
      public void testCopyOf() {
        Map<String, Integer> original = new LinkedHashMap<>();
        original.put("one", 1);
        original.put("two", 2);
        original.put("three", 3);
    
        ImmutableSortedMap<String, Integer> copy = ImmutableSortedMap.copyOf(original);
        assertMapEquals(copy, "one", 1, "three", 3, "two", 2);
        assertSame(copy, ImmutableSortedMap.copyOf(copy));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java

      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      public void testEqualsMultimapWithNullKey() {
        Multimap<K, V> original = multimap();
        initMultimapWithNullKey();
        Multimap<K, V> withNull = multimap();
        new EqualsTester()
            .addEqualityGroup(original)
            .addEqualityGroup(
                withNull, getSubjectGenerator().create((Object[]) createArrayWithNullKey()))
            .testEquals();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/TablesTransposeColumnTest.java

      public TablesTransposeColumnTest() {
        super(false, true, true, true, true);
      }
    
      @Override
      Table<String, Character, Integer> makeTable() {
        Table<Character, String, Integer> original = TreeBasedTable.create();
        return Tables.transpose(original);
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/HashBasedTableTest.java

        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testCreateCopy() {
        Table<String, Integer, Character> original =
            create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        Table<String, Integer, Character> copy = HashBasedTable.create(original);
        assertEquals(original, copy);
        assertEquals((Character) 'a', copy.get("foo", 1));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/UnmodifiableRowSortedTableColumnMapTest.java

        super(false, false, false, false);
      }
    
      @Override
      Table<Integer, String, Character> makeTable() {
        RowSortedTable<Integer, String, Character> original = TreeBasedTable.create();
        return Tables.unmodifiableRowSortedTable(original);
      }
    
      @Override
      protected Map<String, Map<Integer, Character>> makePopulatedMap() {
        RowSortedTable<Integer, String, Character> table = TreeBasedTable.create();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/UnmodifiableTableColumnMapTest.java

        super(false, false, false, false);
      }
    
      @Override
      Table<Integer, String, Character> makeTable() {
        Table<Integer, String, Character> original = HashBasedTable.create();
        return Tables.unmodifiableTable(original);
      }
    
      @Override
      protected Map<String, Map<Integer, Character>> makePopulatedMap() {
        Table<Integer, String, Character> table = HashBasedTable.create();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

      public void testCreateCopy() {
        TreeBasedTable<String, Integer, Character> original =
            TreeBasedTable.create(Collections.reverseOrder(), Ordering.usingToString());
        original.put("foo", 3, 'a');
        original.put("foo", 12, 'b');
        original.put("bar", 5, 'c');
        original.put("cat", 8, 'd');
        table = TreeBasedTable.create(original);
        assertThat(table.rowKeySet()).containsExactly("foo", "cat", "bar").inOrder();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 15K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Collections2.java

       * <p>This method is equivalent to {@code Collections2.orderedPermutations(list,
       * Ordering.natural())}.
       *
       * @param elements the original iterable whose elements have to be permuted.
       * @return an immutable {@link Collection} containing all the different permutations of the
       *     original iterable.
       * @throws NullPointerException if the specified iterable is null or has any null elements.
       * @since 12.0
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/eventbus/EventBusTest.java

      }
    
      /**
       * Tests that bridge methods are not subscribed to events. In Java 8, annotations are included on
       * the bridge method in addition to the original method, which causes both the original and bridge
       * methods to be subscribed (since both are annotated @Subscribe) without specifically checking
       * for bridge methods.
       */
      public void testRegistrationWithBridgeMethod() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
Back to top