- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 204 for getSize (0.22 sec)
-
src/test/java/org/codelibs/core/convert/TimestampConversionUtilTest.java
} /** * @throws Exception */ @Test public void testToCalendar_MediumStyle() throws Exception { final Calendar calendar = toCalendar("2010/9/7 11:49:10", Locale.JAPAN); assertThat(new SimpleDateFormat("yyyy/MM/dd HH:mm:ss").format(calendar.getTime()), is("2010/09/07 11:49:10")); } /**
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 11.4K bytes - Viewed (0) -
src/main/java/jcifs/util/Encdec.java
switch ( enc ) { case TIME_1970_SEC_32BE: return enc_uint32be((int) ( date.getTime() / 1000L ), dst, di); case TIME_1970_SEC_32LE: return enc_uint32le((int) ( date.getTime() / 1000L ), dst, di); case TIME_1904_SEC_32BE: return enc_uint32be((int) ( ( date.getTime() / 1000L + SEC_BETWEEEN_1904_AND_1970 ) & 0xFFFFFFFF ), dst, di); case TIME_1904_SEC_32LE:
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 11K bytes - Viewed (0) -
android/guava/src/com/google/common/base/SmallCharMatcher.java
* can hold setSize elements with the desired load factor. */ @VisibleForTesting static int chooseTableSize(int setSize) { if (setSize == 1) { return 2; } // Correct the size for open addressing to match desired load factor. // Round up to the next highest power of 2. int tableSize = Integer.highestOneBit(setSize - 1) << 1;
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 4.5K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/internal/aether/ReverseTreeRepositoryListenerTest.java
Artifact localRepositoryArtifact = mock(Artifact.class); when(localRepositoryArtifact.getFile()).thenReturn(new File(baseDir, "some/path/within")); Artifact nonLocalReposioryArtifact = mock(Artifact.class); when(nonLocalReposioryArtifact.getFile()).thenReturn(new File("something/completely/different")); assertThat(
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Sat Apr 15 17:24:20 GMT 2023 - 4.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/SourceSinkFactories.java
protected File createFile() throws IOException { File file = File.createTempFile("SinkSourceFile", "txt"); fileThreadLocal.set(file); return file; } protected File getFile() { return fileThreadLocal.get(); } public final void tearDown() throws IOException { if (!fileThreadLocal.get().delete()) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Apr 06 12:56:11 GMT 2023 - 12.7K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/MultipleSetContainsBenchmark.java
throw new SkipThisScenarioException(); } Random rng = new Random(); for (int i = 0; i < 0x1000; i++) { double setSize = rng.nextDouble(); if (setSize < emptySetProportion) { sets[i] = ImmutableSet.of(); } else if (setSize < emptySetProportion + singletonSetProportion) { sets[i] = ImmutableSet.of(PRESENT); } else { sets[i] = ImmutableSet.of(PRESENT, new Object());
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 20:09:59 GMT 2024 - 2.3K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java
cos.write(new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 }); assertFalse(cos.done); assertFalse(cos.isInMemory()); File file = cos.getFile(); assertTrue(cos.done); assertTrue(file.exists()); cos.close(); assertTrue(cos.done); assertTrue(file.exists()); } @Test
Java - Registered: Thu May 02 15:34:13 GMT 2024 - Last Modified: Mon Nov 14 21:05:19 GMT 2022 - 2K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/internal/impl/DefaultArtifactManager.java
&& project.getArtifact().getFile() != null) { return Optional.of(project.getArtifact().getFile().toPath()); } } } Path path = paths.get(id); if (path == null && artifact instanceof DefaultArtifact) { File file = ((DefaultArtifact) artifact).getArtifact().getFile(); if (file != null) {
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Mon Mar 25 10:50:01 GMT 2024 - 4.1K bytes - Viewed (0) -
src/main/java/jcifs/context/CIFSContextWrapper.java
throw new CIFSException("Invalid URL " + url, e); } } /** * * {@inheritDoc} * * @see jcifs.CIFSContext#getPipe(java.lang.String, int) */ @Override public SmbPipeResource getPipe ( String url, int pipeType ) throws CIFSException { try { return new SmbNamedPipe(url, pipeType, this); } catch ( MalformedURLException e ) {
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 4.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/convert/FloatConversionUtil.java
} else if (o instanceof java.util.Date) { if (pattern != null) { return new Float(new SimpleDateFormat(pattern).format(o)); } return new Float(((java.util.Date) o).getTime()); } else { return toFloat(o.toString()); } } private static Float toFloat(final String s) { if (StringUtil.isEmpty(s)) { return null; }
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 3.6K bytes - Viewed (0)