- Sort Score
- Result 10 results
- Languages All
Results 1471 - 1480 of 2,697 for objects (0.03 sec)
-
guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java
* * @return an array containing all of the elements in this queue */ @CanIgnoreReturnValue @Override public Object[] toArray() { E[] items = this.items; Monitor monitor = this.monitor; monitor.enter(); try { Object[] a = new Object[count]; int k = 0; int i = takeIndex; while (k < count) { a[k++] = items[i]; i = inc(i); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 22.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/TestBiMapGenerator.java
/** * Creates bimaps, containing sample entries, to be tested. * * @author Louis Wasserman */ @GwtCompatible @NullMarked public interface TestBiMapGenerator<K extends @Nullable Object, V extends @Nullable Object> extends TestContainerGenerator<BiMap<K, V>, Entry<K, V>> { K[] createKeyArray(int length); V[] createValueArray(int length);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 1.2K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/collect/testing/HelpersTest.java
return singleton("a").iterator(); } }); throw new Error(); } catch (AssertionFailedError expected) { } } public void testIsEmpty_map() { Map<Object, Object> map = new HashMap<>(); assertEmpty(map); map.put("a", "b"); try { assertEmpty(map); throw new Error(); } catch (AssertionFailedError expected) { } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Apr 12 15:07:59 UTC 2025 - 4.9K bytes - Viewed (0) -
guava-testlib/test/com/google/common/collect/testing/HelpersTest.java
return singleton("a").iterator(); } }); throw new Error(); } catch (AssertionFailedError expected) { } } public void testIsEmpty_map() { Map<Object, Object> map = new HashMap<>(); assertEmpty(map); map.put("a", "b"); try { assertEmpty(map); throw new Error(); } catch (AssertionFailedError expected) { } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Apr 12 15:07:59 UTC 2025 - 4.9K bytes - Viewed (0) -
docs/en/docs/advanced/templates.md
## Using `Jinja2Templates` { #using-jinja2templates } * Import `Jinja2Templates`. * Create a `templates` object that you can reuse later. * Declare a `Request` parameter in the *path operation* that will return a template. * Use the `templates` you created to render and return a `TemplateResponse`, pass the name of the template, the request object, and a "context" dictionary with key-value pairs to be used inside of the Jinja2 template.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 3.5K bytes - Viewed (0) -
cmd/bitrot.go
if err != nil { // Read's failed for object with right size, file is corrupt. return err } // Subtract hash length.. left -= int64(n) if left < shardSize { shardSize = left } read, err := io.CopyBuffer(h, io.LimitReader(r, shardSize), *bufp) if err != nil { // Read's failed for object with right size, at different offsets. return errFileCorrupt }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Feb 26 19:26:13 UTC 2025 - 7.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSortedMultiset.java
int n = multiset.entrySet().size(); elements = (E[]) new Object[n]; counts = new int[n]; int i = 0; for (Entry<E> entry : multiset.entrySet()) { elements[i] = entry.getElement(); counts[i] = entry.getCount(); i++; } } Object readResolve() { int n = elements.length; Builder<E> builder = new Builder<>(comparator);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 29.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/CollectPreconditions.java
import com.google.errorprone.annotations.CanIgnoreReturnValue; /** Precondition checks useful in collection implementations. */ @GwtCompatible final class CollectPreconditions { static void checkEntryNotNull(Object key, Object value) { if (key == null) { throw new NullPointerException("null key in entry: null=" + value); } else if (value == null) { throw new NullPointerException("null value in entry: " + key + "=null");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 2.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java
() -> ImmutableSortedMap.copyOf((Set<Entry<Integer, Integer>>) source.entrySet())); } } } private static <K, V> void assertMapEquals(Map<K, V> map, Object... alternatingKeysAndValues) { Map<Object, Object> expected = new LinkedHashMap<>(); for (int i = 0; i < alternatingKeysAndValues.length; i += 2) { expected.put(alternatingKeysAndValues[i], alternatingKeysAndValues[i + 1]); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 27.6K bytes - Viewed (0) -
cmd/erasure-decode_test.go
// Copyright (c) 2015-2021 MinIO, Inc. // // This file is part of MinIO Object Storage stack // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 21K bytes - Viewed (0)