- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 480 for empty (0.44 sec)
-
guava-tests/test/com/google/common/primitives/ShortsTest.java
public void testConcat() { assertThat(Shorts.concat()).isEqualTo(EMPTY); assertThat(Shorts.concat(EMPTY)).isEqualTo(EMPTY); assertThat(Shorts.concat(EMPTY, EMPTY, EMPTY)).isEqualTo(EMPTY); assertThat(Shorts.concat(ARRAY1)).isEqualTo(ARRAY1); assertThat(Shorts.concat(ARRAY1)).isNotSameInstanceAs(ARRAY1); assertThat(Shorts.concat(EMPTY, ARRAY1, EMPTY)).isEqualTo(ARRAY1); assertThat(Shorts.concat(ARRAY1, ARRAY1, ARRAY1))
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Feb 29 15:43:06 GMT 2024 - 26.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java
assertEquals(EMPTY_STATS, cache.stats()); cache.getUnchecked(one); assertEquals(EMPTY_STATS, cache.stats()); Object two = new Object(); cache.getUnchecked(two); assertEquals(EMPTY_STATS, cache.stats()); Object three = new Object(); cache.getUnchecked(three); assertEquals(EMPTY_STATS, cache.stats()); } public void testRecordStats() {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 12.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/SetOperationsTest.java
protected Set<String> create(String[] elements) { return Sets.union(Sets.<String>newHashSet(), Sets.<String>newHashSet()); } }) .named("empty U empty") .withFeatures( CollectionSize.ZERO, CollectionFeature.NONE, CollectionFeature.ALLOWS_NULL_VALUES) .createTestSuite()); suite.addTest( SetTestSuiteBuilder.using(
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Feb 19 20:34:55 GMT 2024 - 14.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/EmptyCachesTest.java
import junit.framework.TestCase; /** * {@link LoadingCache} tests that deal with empty caches. * * @author mike nonemacher */ public class EmptyCachesTest extends TestCase { public void testEmpty() { for (LoadingCache<Object, Object> cache : caches()) { checkEmpty(cache); } } public void testInvalidate_empty() { for (LoadingCache<Object, Object> cache : caches()) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 11.5K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Splitter.java
* * @param separatorPattern the pattern that determines whether a subsequence is a separator. This * pattern may not match the empty string. * @return a splitter, with default settings, that uses this pattern * @throws IllegalArgumentException if {@code separatorPattern} matches the empty string */ @GwtIncompatible // java.util.regex public static Splitter on(Pattern separatorPattern) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 23.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ObjectArraysTest.java
} @GwtIncompatible // ObjectArrays.newArray(Class, int) public void testNewArray_fromClass_Empty() { String[] empty = ObjectArrays.newArray(String.class, 0); assertEquals(String[].class, empty.getClass()); assertThat(empty).isEmpty(); } @GwtIncompatible // ObjectArrays.newArray(Class, int) public void testNewArray_fromClass_Nonempty() {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 8.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractSequentialIteratorTest.java
} @SuppressWarnings("DoNotCall") public void testEmpty() { Iterator<Object> empty = new EmptyAbstractSequentialIterator<>(); assertFalse(empty.hasNext()); try { empty.next(); fail(); } catch (NoSuchElementException expected) { } try { empty.remove(); fail(); } catch (UnsupportedOperationException expected) { } }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Feb 26 17:19:08 GMT 2024 - 4.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Queues.java
/** * Creates an empty {@code ArrayBlockingQueue} with the given (fixed) capacity and nonfair access * policy. */ @J2ktIncompatible @GwtIncompatible // ArrayBlockingQueue public static <E> ArrayBlockingQueue<E> newArrayBlockingQueue(int capacity) { return new ArrayBlockingQueue<>(capacity); } // ArrayDeque /** * Creates an empty {@code ArrayDeque}. * * @since 12.0
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 16K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MoreCollectors.java
* @throws NullPointerException if any element in the stream is {@code null}. * @return {@code Optional.of(onlyElement)} if the stream has exactly one element (must not be * {@code null}) and returns {@code Optional.empty()} if it has none. */ @SuppressWarnings("unchecked") public static <T> Collector<T, ?, Optional<T>> toOptional() { return (Collector) TO_OPTIONAL; }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri Dec 08 18:58:42 GMT 2023 - 5.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/EnumMultiset.java
* @param elements the elements that the multiset should contain * @throws IllegalArgumentException if {@code elements} is empty */ public static <E extends Enum<E>> EnumMultiset<E> create(Iterable<E> elements) { Iterator<E> iterator = elements.iterator(); checkArgument(iterator.hasNext(), "EnumMultiset constructor passed empty Iterable"); EnumMultiset<E> multiset = new EnumMultiset<>(iterator.next().getDeclaringClass());
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 9.3K bytes - Viewed (0)