Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 124 for modifiable (0.17 sec)

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

    import static com.google.common.collect.Sets.newHashSet;
    import static com.google.common.collect.Sets.newLinkedHashSet;
    import static com.google.common.collect.testing.IteratorFeature.MODIFIABLE;
    import static com.google.common.collect.testing.IteratorFeature.SUPPORTS_REMOVE;
    import static com.google.common.collect.testing.IteratorFeature.SUPPORTS_SET;
    import static com.google.common.truth.Truth.assertThat;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Table.java

     * will change the table.
     *
     * <p>All methods that modify the table are optional, and the views returned by the table may or may
     * not be modifiable. When modification isn't supported, those methods will throw an {@link
     * UnsupportedOperationException}.
     *
     * <h3>Implementations</h3>
     *
     * <ul>
     *   <li>{@link ImmutableTable}
     *   <li>{@link HashBasedTable}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 10.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

      @Override
      public void adjacentEdges_checkReturnedSetMutability() {
        addEdge(N1, N2, E12);
        Set<String> adjacentEdges = network.adjacentEdges(E12);
        try {
          adjacentEdges.add(E23);
          fail(ERROR_MODIFIABLE_COLLECTION);
        } catch (UnsupportedOperationException e) {
          addEdge(N2, N3, E23);
          assertThat(network.adjacentEdges(E12)).containsExactlyElementsIn(adjacentEdges);
        }
      }
    
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

      private <T extends Comparable<T>> void runIterator(final List<T> values, int steps)
          throws Exception {
        IteratorTester<T> tester =
            new IteratorTester<T>(
                steps,
                IteratorFeature.MODIFIABLE,
                Lists.newLinkedList(values),
                IteratorTester.KnownOrder.UNKNOWN_ORDER) {
              private @Nullable MinMaxPriorityQueue<T> mmHeap;
    
              @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MultimapsTest.java

        assertUnmodifiableIterableInTandem(
            unmodifiable.asMap().entrySet(), multimap.asMap().entrySet());
    
        assertEquals(multimap.toString(), unmodifiable.toString());
        assertEquals(multimap.hashCode(), unmodifiable.hashCode());
        assertEquals(multimap, unmodifiable);
    
        assertThat(unmodifiable.asMap().get("bar")).containsExactly(5, -1);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Sets.java

        }
    
        /**
         * Scope the return type to {@link UnmodifiableIterator} to ensure this is an unmodifiable view.
         *
         * @since 20.0 (present with return type {@link Iterator} since 2.0)
         */
        @Override
        public abstract UnmodifiableIterator<E> iterator();
      }
    
      /**
       * Returns an unmodifiable <b>view</b> of the union of two sets. The returned set contains all
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

      // here to provide error messages.
      // TODO(user): Some Strings used in the subclasses can be added as static Strings
      // here too.
      static final String ERROR_MODIFIABLE_SET = "Set returned is unexpectedly modifiable";
      static final String ERROR_SELF_LOOP = "self-loops are not allowed";
      static final String ERROR_ADDED_SELF_LOOP = "Should not be allowed to add a self-loop edge.";
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/net/InetAddresses.java

        long addressAsLong = 0;
        if (hasEmbeddedIPv4ClientAddress(ip6)) {
          addressAsLong = getEmbeddedIPv4ClientAddress(ip6).hashCode();
        } else {
          // Just extract the high 64 bits (assuming the rest is user-modifiable).
          addressAsLong = ByteBuffer.wrap(ip6.getAddress(), 0, 8).getLong();
        }
    
        // Many strategies for hashing are possible. This might suffice for now.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  9. guava/src/com/google/common/collect/ArrayListMultimap.java

     * value and the old value.
     *
     * <p>Keys and values may be null. All optional multimap methods are supported, and all returned
     * views are modifiable.
     *
     * <p>The lists returned by {@link #get}, {@link #removeAll}, and {@link #replaceValues} all
     * implement {@link java.util.RandomAccess}.
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

          nullableValueEntry.setValue(null);
          fail("setValue on unmodifiable Map.Entry succeeded");
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      /**
       * Verifies that an Iterator is unmodifiable.
       *
       * <p>This test only works with iterators that iterate over a finite set.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 14.8K bytes
    - Viewed (0)
Back to top