Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,046 for asDays (0.04 sec)

  1. guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java

    import static java.util.Arrays.asList;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.Collection;
    import java.util.Iterator;
    import org.jspecify.annotations.Nullable;
    
    /**
     * An implementation of {@code Iterable} which throws an exception on all invocations of the {@link
     * #iterator()} method after the first, and whose iterator is always unmodifiable.
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/repository/LegacyRepositorySystemTest.java

            policy.setChecksumPolicy("ignore");
            policy.setUpdatePolicy("always");
    
            Repository repository = new Repository();
            repository.setId(RepositorySystem.DEFAULT_REMOTE_REPO_ID);
            repository.setUrl("file://" + repoDir.toURI().getPath());
            repository.setReleases(policy);
            repository.setSnapshots(policy);
    
            return Arrays.asList(repositorySystem.buildArtifactRepository(repository));
        }
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Feb 07 00:45:02 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableMap.java

       * @deprecated Unsupported operation.
       */
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      public final void putAll(Map<? extends K, ? extends V> map) {
        throw new UnsupportedOperationException();
      }
    
      /**
       * Guaranteed to throw an exception and leave the map unmodified.
       *
       * @throws UnsupportedOperationException always
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 41.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/net/InetAddresses.java

        byte[] bytes = ip.getAddress();
        Inet4Address server = getInet4Address(Arrays.copyOfRange(bytes, 4, 8));
    
        int flags = ByteStreams.newDataInput(bytes, 8).readShort() & 0xffff;
    
        // Teredo obfuscates the mapped client port, per section 4 of the RFC.
        int port = ~ByteStreams.newDataInput(bytes, 10).readShort() & 0xffff;
    
        byte[] clientBytes = Arrays.copyOfRange(bytes, 12, 16);
        for (int i = 0; i < clientBytes.length; i++) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

                byte[] longFileId = new byte[32];
                Arrays.fill(longFileId, (byte) 0xCD);
                request.setFileId(longFileId);
    
                Arrays.fill(buffer, (byte) 0);
                bytesWritten = request.writeBytesWireFormat(buffer, 0);
    
                assertEquals(49, bytesWritten);
                assertArrayEquals(Arrays.copyOfRange(longFileId, 0, 16), Arrays.copyOfRange(buffer, 16, 32));
            }
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/PredicatesTest.java

      }
    
      public void testAnd_applyIterable() {
        Collection<Predicate<@Nullable Integer>> empty = Arrays.asList();
        assertEvalsToTrue(Predicates.and(empty));
        assertEvalsLikeOdd(Predicates.and(Arrays.asList(isOdd())));
        assertEvalsLikeOdd(Predicates.and(Arrays.asList(TRUE, isOdd())));
        assertEvalsToFalse(Predicates.and(Arrays.asList(FALSE, NEVER_REACHED)));
      }
    
      public void testAnd_equalityIterable() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 32.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/BloomFilterStrategies.java

            // TODO(lowasser): avoid allocation here
            return Arrays.equals(toPlainArray(data), toPlainArray(lockFreeBitArray.data));
          }
          return false;
        }
    
        @Override
        public int hashCode() {
          // TODO(lowasser): avoid allocation here
          return Arrays.hashCode(toPlainArray(data));
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/CollectorTester.java

       * Verifies that the specified expected result is always produced by collecting the specified
       * inputs, regardless of how the elements are divided.
       */
      @SafeVarargs
      @CanIgnoreReturnValue
      @SuppressWarnings("nullness") // TODO(cpovirk): Remove after we fix whatever the bug is.
      public final CollectorTester<T, A, R> expectCollects(R expectedResult, T... inputs) {
        List<T> list = Arrays.asList(inputs);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu May 15 21:47:56 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

                byte[] longFileId = new byte[32];
                Arrays.fill(longFileId, (byte) 0xCD);
                request.setFileId(longFileId);
    
                Arrays.fill(buffer, (byte) 0);
                bytesWritten = request.writeBytesWireFormat(buffer, 0);
    
                assertEquals(48, bytesWritten);
                assertArrayEquals(Arrays.copyOfRange(longFileId, 0, 16), Arrays.copyOfRange(buffer, 8, 24));
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/services/ProblemCollector.java

     * KIND, either express or implied.  See the License for the
     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.api.services;
    
    import java.util.Arrays;
    import java.util.Comparator;
    import java.util.List;
    import java.util.concurrent.ConcurrentHashMap;
    import java.util.concurrent.ConcurrentMap;
    import java.util.concurrent.CopyOnWriteArrayList;
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jul 18 17:30:19 UTC 2025
    - 11.4K bytes
    - Viewed (0)
Back to top