Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 80 for Days (0.12 sec)

  1. guava-tests/test/com/google/common/collect/ImmutableMapFloodingTest.java

      public ImmutableMapFloodingTest() {
        super(
            Arrays.asList(ConstructionPathway.values()),
            n -> n * Math.log(n),
            ImmutableList.of(QueryOp.MAP_GET));
      }
    
      /** All the ways to create an ImmutableMap. */
      enum ConstructionPathway implements Construction<Map<Object, Object>> {
        COPY_OF_MAP {
          @Override
          public Map<Object, Object> create(List<?> keys) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

          Spliterator.OfPrimitive<E, C, ?> split = spliteratorOfPrimitive.trySplit();
          return split == null ? null : new GeneralSpliteratorOfPrimitive<>(split, consumerizer);
        }
      }
    
      /**
       * Different ways of decomposing a Spliterator, all of which must produce the same elements (up to
       * ordering, if Spliterator.ORDERED is not present).
       */
      enum SpliteratorDecompositionStrategy {
        NO_SPLIT_FOR_EACH_REMAINING {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 18:19:31 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  3. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

              .testForwarding(Equals.class, NoDelegateToEquals.WRAPPER);
        } catch (AssertionFailedError expected) {
          return;
        }
        fail("Should have failed");
      }
    
      /** An interface for the 2 ways that a chaining call might be defined. */
      private interface ChainingCalls {
        // A method that is defined to 'return this'
        @CanIgnoreReturnValue
        ChainingCalls chainingCall();
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/PredicatesTest.java

        tester.testAllPublicStaticMethods(Predicates.class);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testCascadingSerialization() throws Exception {
        // Eclipse says Predicate<Integer>; javac says Predicate<Object>.
        Predicate<? super Integer> nasty =
            Predicates.not(
                Predicates.and(
                    Predicates.or(
                        Predicates.equalTo((Object) 1),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

       */
      public List<Integer> asList() {
        /*
         * Typically we cache this kind of thing, but much repeated use of this view is a performance
         * anti-pattern anyway. If we cache, then everyone pays a price in memory footprint even if
         * they never use this method.
         */
        return new AsList(this);
      }
    
      static class AsList extends AbstractList<Integer> implements RandomAccess, Serializable {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

       */
      public List<Double> asList() {
        /*
         * Typically we cache this kind of thing, but much repeated use of this view is a performance
         * anti-pattern anyway. If we cache, then everyone pays a price in memory footprint even if
         * they never use this method.
         */
        return new AsList(this);
      }
    
      static class AsList extends AbstractList<Double> implements RandomAccess, Serializable {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/HashBiMap.java

           * valid value. That's the best we can do, short of holding a reference to the most recently
           * seen value. And while we *could* do that, we aren't required to: Map.Entry explicitly says
           * that behavior is undefined when the backing map is modified through another API. (It even
           * permits us to throw IllegalStateException. Maybe we should have done that, but we probably
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 36.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/trans/TransCallNamedPipe.java

        }
    
    
        @Override
        protected int writeSetupWireFormat ( byte[] dst, int dstIndex ) {
            dst[ dstIndex++ ] = this.getSubCommand();
            dst[ dstIndex++ ] = (byte) 0x00;
            // this says "Transaction priority" in netmon
            dst[ dstIndex++ ] = (byte) 0x00; // no FID
            dst[ dstIndex++ ] = (byte) 0x00;
            return 4;
        }
    
    
        @Override
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 3.1K bytes
    - Viewed (0)
  9. guava-tests/benchmark/com/google/common/math/LessThanBenchmark.java

     */
    
    package com.google.common.math;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import java.util.Random;
    
    /**
     * Benchmarks for various ways of writing the expression {@code foo + ((bar < baz) ? 1 : 0)}.
     *
     * @author Louis Wasserman
     */
    public class LessThanBenchmark {
      static final int SAMPLE_SIZE = 0x1000;
      static final int SAMPLE_MASK = 0x0FFF;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/net/PercentEscaperTest.java

        assertEquals("safestring", e.escape("safestring"));
        assertEquals("embedded%00null", e.escape("embedded\0null"));
        assertEquals("max%EF%BF%BFchar", e.escape("max\uffffchar"));
      }
    
      /** Tests the various ways that the space character can be handled */
      public void testPlusForSpace() {
        UnicodeEscaper basicEscaper = new PercentEscaper("", false);
        UnicodeEscaper plusForSpaceEscaper = new PercentEscaper("", true);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.2K bytes
    - Viewed (0)
Back to top