- Sort Score
- Num 10 results
- Language All
Results 1581 - 1590 of 6,187 for New (0.03 seconds)
-
guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java
return Integer.toString(value); } } public void testCopyOfDuplicateInconsistentWithEquals() { IntegerDiv10 three = new IntegerDiv10(3); IntegerDiv10 eleven = new IntegerDiv10(11); IntegerDiv10 twelve = new IntegerDiv10(12); IntegerDiv10 twenty = new IntegerDiv10(20); List<IntegerDiv10> original = ImmutableList.of(three, eleven, twelve, twenty);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 22.8K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/Authenticate.java
}) .build(); } public void run() throws Exception { Request request = new Request.Builder() .url("http://publicobject.com/secrets/hellosecret.txt") .build(); try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); System.out.println(response.body().string()); } }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Aug 12 07:26:27 GMT 2021 - 1.9K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/TestStringListGenerator.java
@Override public SampleElements<String> samples() { return new Strings(); } @Override public List<String> create(Object... elements) { String[] array = new String[elements.length]; int i = 0; for (Object e : elements) { array[i++] = (String) e; } return create(array); } /** * Creates a new collection containing the given elements; implement this method instead of {@link
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 14:50:24 GMT 2024 - 1.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ForwardingTableTest.java
* @author Gregory Kick */ @NullUnmarked public class ForwardingTableTest extends TestCase { @SuppressWarnings("rawtypes") public void testForwarding() { new ForwardingWrapperTester() .testForwarding( Table.class, new Function<Table, Table<?, ?, ?>>() { @Override public Table<?, ?, ?> apply(Table delegate) { return wrap((Table<?, ?, ?>) delegate);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 1.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/EnumBiMapTest.java
return new Currency[length]; } } @J2ktIncompatible @GwtIncompatible // suite @AndroidIncompatible // test-suite builders public static Test suite() { TestSuite suite = new TestSuite(); suite.addTest( BiMapTestSuiteBuilder.using(new EnumBiMapGenerator()) .named("EnumBiMap") .withFeatures( CollectionSize.ANY,
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 11.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/escape/ArrayBasedCharEscaperTest.java
} public void testDeleteUnsafeChars() throws IOException { CharEscaper deletingEscaper = new ArrayBasedCharEscaper(NO_REPLACEMENTS, ' ', '~') { private final char[] noChars = new char[0]; @Override protected char[] escapeUnsafe(char c) { return noChars; } };
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Feb 18 15:41:04 GMT 2025 - 3.6K bytes - Click Count (0) -
guava/src/com/google/common/collect/Lists.java
int initialArraySize) { checkNonnegative(initialArraySize, "initialArraySize"); // for GWT. return new ArrayList<>(initialArraySize); } /** * Creates an {@code ArrayList} instance to hold {@code estimatedSize} elements, <i>plus</i> an * unspecified amount of padding; **don't do this**. Instead, use {@code new }{@link * ArrayList#ArrayList(int) ArrayList}{@code <>(int)} directly and choose an explicit paddingCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 16:38:09 GMT 2026 - 42.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java
@AndroidIncompatible // problem with suite builders on Android public static Test suite() { TestSuite suite = new TestSuite(); suite.addTestSuite(MutableTypeToInstanceMapTest.class); suite.addTest( MapTestSuiteBuilder.using( new TestTypeToInstanceMapGenerator() { // Other tests will verify what real, warning-free usage looks like
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 8.1K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java
@BeforeExperiment @SuppressWarnings("InlineMeInliner") // String.repeat unavailable under Java 8 void setUp() { String component = Strings.repeat("a", componentLength); String[] raw = new String[count]; Arrays.fill(raw, component); components = Arrays.asList(raw); } /** {@link Joiner} with a string delimiter. */ @Benchmark int joinerWithStringDelimiter(int reps) { int dummy = 0;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 27 16:19:35 GMT 2024 - 5K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/ConcurrencyDependencyGraph.java
private final Set<MavenProject> finishedProjects = new HashSet<>(); private final SmartProjectComparator projectComparator; public ConcurrencyDependencyGraph(ProjectBuildList projectBuilds, ProjectDependencyGraph projectDependencyGraph) { this.projectDependencyGraph = projectDependencyGraph; this.projectBuilds = projectBuilds; this.projectComparator = new SmartProjectComparator(projectDependencyGraph); }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 5.9K bytes - Click Count (0)