- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 5,184 for New (0.16 sec)
-
android/guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java
public void testList() { assertFreshInstance(new TypeToken<List<String>>() {}); assertNotInstantiable(new TypeToken<List<EmptyEnum>>() {}); } public void testArrayList() { assertFreshInstance(new TypeToken<ArrayList<String>>() {}); assertNotInstantiable(new TypeToken<ArrayList<EmptyEnum>>() {}); } public void testLinkedList() { assertFreshInstance(new TypeToken<LinkedList<String>>() {}); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 17.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/auth/chain/CommandChain.java
private final List<String> list = new LinkedList<>(); private final int maxLineBuffer; public InputStreamThread(final InputStream is, final String charset, final int maxOutputLineBuffer) { try { br = new BufferedReader(new InputStreamReader(is, charset)); } catch (final UnsupportedEncodingException e) {
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 9.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashingOutputStreamTest.java
HashingOutputStream out = new HashingOutputStream(Hashing.md5(), buffer); out.write(buf); assertEquals(expectedHash, out.hash()); } public void testChecksForNull() throws Exception { NullPointerTester tester = new NullPointerTester(); tester.testAllPublicInstanceMethods( new HashingOutputStream(Hashing.md5(), new ByteArrayOutputStream()));
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Oct 02 16:24:50 GMT 2020 - 3.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java
testSortDescending(new long[] {}, 0, 0, new long[] {}); testSortDescending(new long[] {1}, 0, 1, new long[] {1}); testSortDescending(new long[] {1, 2}, 0, 2, new long[] {2, 1}); testSortDescending(new long[] {1, 3, 1}, 0, 2, new long[] {3, 1, 1}); testSortDescending(new long[] {1, 3, 1}, 0, 1, new long[] {1, 3, 1}); testSortDescending( new long[] {GREATEST - 1, 1, GREATEST - 2, 2}, 1,
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Feb 09 15:36:17 GMT 2024 - 13.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/MapCacheTest.java
return Arrays.asList( new Object[][] { {new MapIteratorCache<String, String>(new HashMap<String, String>())}, {new MapIteratorCache<String, String>(new TreeMap<String, String>(nullsLast))}, {new MapRetrievalCache<String, String>(new HashMap<String, String>())}, {new MapRetrievalCache<String, String>(new TreeMap<String, String>(nullsLast))} }); } @Before
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Apr 26 16:23:26 GMT 2021 - 3.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java
AtomicDoubleArray aa = new AtomicDoubleArray(VALUES); assertEquals(Arrays.toString(VALUES), aa.toString()); assertEquals("[]", new AtomicDoubleArray(0).toString()); assertEquals("[]", new AtomicDoubleArray(new double[0]).toString()); } /** compareAndSet treats +0.0 and -0.0 as distinct values */ public void testDistinctZeros() { AtomicDoubleArray aa = new AtomicDoubleArray(SIZE);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 10K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Cut.java
Comparable<?> endpoint() { throw new IllegalStateException("range unbounded on this side"); } @Override boolean isLessThan(Comparable<?> value) { return true; } @Override BoundType typeAsLowerBound() { throw new IllegalStateException(); } @Override BoundType typeAsUpperBound() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 12.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ByteSinkTest.java
TestByteSink failSink = new TestByteSink(WRITE_THROWS); assertThrows(IOException.class, () -> new TestByteSource(new byte[10]).copyTo(failSink)); assertTrue(failSink.wasStreamClosed()); } public void testClosesOnErrors_writingFromInputStreamThatThrows() throws IOException { TestByteSink okSink = new TestByteSink(); TestInputStream in = new TestInputStream(new ByteArrayInputStream(new byte[10]), READ_THROWS);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 3.7K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultPluginDependenciesResolver.java
try { DefaultRepositorySystemSession pluginSession = new DefaultRepositorySystemSession(session); pluginSession.setArtifactDescriptorPolicy(new SimpleArtifactDescriptorPolicy(true, false)); ArtifactDescriptorRequest request = new ArtifactDescriptorRequest(pluginArtifact, repositories, REPOSITORY_CONTEXT); request.setTrace(trace);
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 10K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/DocumentUtilTest.java
Map<String, Object> doc = new HashMap<>(); doc.put("key1", new String[] { "aaa", "bbb" }); assertArrayEquals(new String[] { "aaa", "bbb" }, DocumentUtil.getValue(doc, "key1", String[].class)); assertEquals(Arrays.asList("aaa", "bbb"), (List<String>) DocumentUtil.getValue(doc, "key1", List.class)); } public void test_list() { Map<String, Object> doc = new HashMap<>();
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 4K bytes - Viewed (0)