- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for testGetOnlyElement_noDefault_empty (0.13 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava-tests/test/com/google/common/collect/IterablesTest.java
} public void testGetOnlyElement_noDefault_valid() { Iterable<String> iterable = singletonList("foo"); assertEquals("foo", getOnlyElement(iterable)); } public void testGetOnlyElement_noDefault_empty() { Iterable<String> iterable = emptyList(); assertThrows(NoSuchElementException.class, () -> getOnlyElement(iterable)); } public void testGetOnlyElement_noDefault_multiple() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:44:53 GMT 2025 - 45.6K bytes - Click Count (0)