- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 18 for expectedSizes (0.17 seconds)
-
android/guava/src/com/google/common/collect/HashBasedTable.java
private static final class Factory<C, V> implements Supplier<Map<C, V>>, Serializable { final int expectedSize; Factory(int expectedSize) { this.expectedSize = expectedSize; } @Override public Map<C, V> get() { return Maps.newLinkedHashMapWithExpectedSize(expectedSize); } @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0; }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 13:11:08 GMT 2026 - 4.1K bytes - Click Count (0) -
guava/src/com/google/common/collect/HashBasedTable.java
private static final class Factory<C, V> implements Supplier<Map<C, V>>, Serializable { final int expectedSize; Factory(int expectedSize) { this.expectedSize = expectedSize; } @Override public Map<C, V> get() { return Maps.newLinkedHashMapWithExpectedSize(expectedSize); } @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0; }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 13:11:08 GMT 2026 - 4.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/CharSinkTester.java
private final ImmutableList<String> lines; private final ImmutableList<String> expectedLines; private CharSink sink; public CharSinkTester( CharSinkFactory factory, String string, String suiteName, String caseDesc, Method method) { super(factory, string, suiteName, caseDesc, method); this.lines = getLines(string); this.expectedLines = getLines(expected); } @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 4.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/CharSinkTester.java
private final ImmutableList<String> lines; private final ImmutableList<String> expectedLines; private CharSink sink; public CharSinkTester( CharSinkFactory factory, String string, String suiteName, String caseDesc, Method method) { super(factory, string, suiteName, caseDesc, method); this.lines = getLines(string); this.expectedLines = getLines(expected); } @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 4.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/CharSourceTester.java
} return suite; } private final ImmutableList<String> expectedLines; private CharSource source; public CharSourceTester( CharSourceFactory factory, String string, String suiteName, String caseDesc, Method method) { super(factory, string, suiteName, caseDesc, method); this.expectedLines = getLines(expected); } @Override protected void setUp() throws Exception {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 7.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/MinMaxPriorityQueue.java
* sized appropriately to hold {@code expectedSize} elements. */ @SuppressWarnings("rawtypes") // https://github.com/google/guava/issues/989 public static Builder<Comparable> expectedSize(int expectedSize) { return new Builder<Comparable>(Ordering.natural()).expectedSize(expectedSize); } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 13:11:08 GMT 2026 - 34K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java
} @GwtIncompatible // Builder impl public void testPresizedBuilderForceCopy() { for (int expectedSize = 1; expectedSize < 4; expectedSize++) { ImmutableSet.Builder<Integer> builder = ImmutableSet.builderWithExpectedSize(expectedSize); builder.add(-1); Object[] prevArray = null; for (int i = 0; i < 10; i++) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 14.1K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java
* sized appropriately to hold {@code expectedSize} elements. */ @SuppressWarnings("rawtypes") // https://github.com/google/guava/issues/989 public static Builder<Comparable> expectedSize(int expectedSize) { return new Builder<Comparable>(Ordering.natural()).expectedSize(expectedSize); } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 13:11:08 GMT 2026 - 34K bytes - Click Count (0) -
android/guava/src/com/google/common/io/ByteStreams.java
static byte[] toByteArray(InputStream in, long expectedSize) throws IOException { checkArgument(expectedSize >= 0, "expectedSize (%s) must be non-negative", expectedSize); if (expectedSize > MAX_ARRAY_LEN) { throw new OutOfMemoryError(expectedSize + " bytes is too large to fit in a byte array"); } byte[] bytes = new byte[(int) expectedSize]; int remaining = (int) expectedSize; while (remaining > 0) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 31.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/CompactHashMapTest.java
assertThat(map.values).isNull(); map.put(1, "1"); assertThat(map.needsAllocArrays()).isFalse(); int expectedSize = max(1, i); assertThat(map.entries).hasLength(expectedSize); assertThat(map.keys).hasLength(expectedSize); assertThat(map.values).hasLength(expectedSize); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 5.4K bytes - Click Count (0)