- Sort Score
- Result 10 results
- Languages All
Results 231 - 240 of 333 for UnsupportedOperationException (0.22 sec)
-
android/guava-tests/test/com/google/common/collect/AbstractImmutableMapMapInterfaceTest.java
AbstractImmutableMapMapInterfaceTest() { super(false, false, false, false, false); } @Override protected Map<K, V> makeEmptyMap() { throw new UnsupportedOperationException(); } private static final Joiner JOINER = Joiner.on(", "); @Override protected final void assertMoreInvariants(Map<K, V> map) { // TODO: can these be moved to MapInterfaceTest?
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractImmutableSortedMapMapInterfaceTest.java
public AbstractImmutableSortedMapMapInterfaceTest() { super(false, false, false, false, false); } @Override protected SortedMap<K, V> makeEmptyMap() { throw new UnsupportedOperationException(); } private static final Joiner joiner = Joiner.on(", "); @Override protected void assertMoreInvariants(Map<K, V> map) { // TODO: can these be moved to MapInterfaceTest?
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 2K bytes - Viewed (0) -
guava/src/com/google/common/graph/IncidentEdgeSet.java
IncidentEdgeSet(BaseGraph<N> graph, N node) { this.graph = graph; this.node = node; } @Override public boolean remove(@CheckForNull Object o) { throw new UnsupportedOperationException(); } @Override public int size() { if (graph.isDirected()) { return graph.inDegree(node) + graph.outDegree(node) - (graph.successors(node).contains(node) ? 1 : 0);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 26 17:43:39 UTC 2021 - 2.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java
assertEquals(values.subList(1, values.size()), copyToList(navigableSet)); } @CollectionFeature.Require(absent = SUPPORTS_REMOVE) public void testPollFirstUnsupported() { assertThrows(UnsupportedOperationException.class, () -> navigableSet.pollFirst()); } @CollectionSize.Require(SEVERAL) public void testLowerHole() { resetWithHole(); assertEquals(null, navigableSet.lower(a));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 8.4K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/resolver/ArtifactResolverTest.java
Artifact artifact, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories) { throw new UnsupportedOperationException("Cannot get available versions in this test case"); } @Override public List<ArtifactVersion> retrieveAvailableVersionsFromDeploymentRepository(
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 10.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapClearTester.java
@CollectionSize.Require(absent = ZERO) @MapFeature.Require(absent = SUPPORTS_REMOVE) public void testClearUnsupported() { assertThrows(UnsupportedOperationException.class, () -> multimap().clear()); } private void assertCleared() { assertEquals(0, multimap().size()); assertEmpty(multimap()); assertEquals(multimap(), getSubjectGenerator().create());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 19:10:20 UTC 2024 - 4.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java
} @CollectionFeature.Require(absent = SUPPORTS_ADD) public void testSetCountConditional_negativeOldCount_addUnsupported() { try { assertSetCountNegativeOldCount(); } catch (UnsupportedOperationException tolerated) { } } // Incorrect expected present count. @CollectionFeature.Require(SUPPORTS_ADD) public void testSetCountConditional_oldCountTooLarge() { assertFalse(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 3.9K bytes - Viewed (0) -
compat/maven-model/src/main/java/org/apache/maven/model/InputSource.java
try { InputSource copy = (InputSource) super.clone(); return copy; } catch (Exception ex) { throw (RuntimeException) new UnsupportedOperationException(getClass().getName() + " does not support clone()").initCause(ex); } } // -- InputSource clone() /** * Get the path/URL of the POM or {@code null} if unknown. *
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllTester.java
expectAdded(e0()); } @CollectionFeature.Require(absent = SUPPORTS_ADD) @CollectionSize.Require(absent = ZERO) public void testAddAll_unsupportedAllPresent() { assertThrows( UnsupportedOperationException.class, () -> getList().addAll(MinimalCollection.of(e0()))); expectUnchanged(); } @CollectionFeature.Require(SUPPORTS_ADD) public void testAddAll_withDuplicates() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 2.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Maps.java
return set; } @Override public boolean add(@ParametricNullness E element) { throw new UnsupportedOperationException(); } @Override public boolean addAll(Collection<? extends E> es) { throw new UnsupportedOperationException(); } }; } private static <E extends @Nullable Object> SortedSet<E> removeOnlySortedSet(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 161.6K bytes - Viewed (0)