Search Options

Results per page
Sort
Preferred Languages
Advance

Results 401 - 410 of 445 for nenhum (0.11 sec)

  1. guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

          }
          ImmutableDoubleArray iia = builder.build();
          for (int j = 0; j < iia.length(); j++) {
            assertThat(iia.get(j)).isEqualTo((double) j);
          }
        }
      }
    
      private enum BuilderOp {
        ADD_ONE {
          @Override
          void doIt(ImmutableDoubleArray.Builder builder, AtomicInteger counter) {
            builder.add(counter.getAndIncrement());
          }
        },
        ADD_ARRAY {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

      public void testCopyOf_collectionContainingNull() {
        Collection<@Nullable String> c = MinimalCollection.of("a", null, "b");
        assertThrows(NullPointerException.class, () -> copyOf((Collection<String>) c));
      }
    
      enum TestEnum {
        A,
        B,
        C,
        D
      }
    
      public void testCopyOf_collection_enumSet() {
        Collection<TestEnum> c = EnumSet.of(TestEnum.A, TestEnum.B, TestEnum.D);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/math/LongMath.java

      };
    
      private enum MillerRabinTester {
        /** Works for inputs ≤ FLOOR_SQRT_MAX_LONG. */
        SMALL {
          @Override
          long mulMod(long a, long b, long m) {
            /*
             * lowasser, 2015-Feb-12: Benchmarks suggest that changing this to UnsignedLongs.remainder
             * and increasing the threshold to 2^32 doesn't pay for itself, and adding another enum
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 09 16:39:37 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

              queueIterator.remove();
            }
          }
          assertThat(remaining).isEqualTo(0);
          assertIntact(queue);
          assertThat(queue).containsExactlyElementsIn(elements);
        }
      }
    
      private enum Element {
        ONE,
        TWO,
        THREE,
        FOUR,
        FIVE;
      }
    
      public void testRandomAddsAndRemoves_duplicateElements() {
        Random random = new Random(0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

        outputFuture.addListener(listener, directExecutor());
        taskFuture.addListener(listener, directExecutor());
    
        return outputFuture;
      }
    
      enum RunningState {
        NOT_RUN,
        CANCELLED,
        STARTED,
      }
    
      /**
       * This class helps avoid a StackOverflowError when large numbers of tasks are submitted with
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/hash/HashTestUtils.java

          new Funnel<Object>() {
            @Override
            public void funnel(Object object, PrimitiveSink bytePrimitiveSink) {
              bytePrimitiveSink.putInt(object.hashCode());
            }
          };
    
      enum RandomHasherAction {
        PUT_BOOLEAN() {
          @Override
          void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) {
            boolean value = random.nextBoolean();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/Hashing.java

       *
       * @since 14.0
       */
      public static HashFunction adler32() {
        return ChecksumType.ADLER_32.hashFunction;
      }
    
      @Immutable
      enum ChecksumType implements ImmutableSupplier<Checksum> {
        CRC_32("Hashing.crc32()") {
          @Override
          public Checksum get() {
            return new CRC32();
          }
        },
        ADLER_32("Hashing.adler32()") {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 19 16:02:36 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

      }
    
      private static int totalSize(Iterable<? extends Entry<?>> entries) {
        int sum = 0;
        for (Entry<?> entry : entries) {
          sum += entry.getCount();
        }
        return sum;
      }
    
      private enum SubMultisetSpec {
        TAIL_CLOSED {
          @Override
          <E> List<Entry<E>> expectedEntries(int targetEntry, List<Entry<E>> entries) {
            return entries.subList(targetEntry, entries.size());
          }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/LongMath.java

      };
    
      private enum MillerRabinTester {
        /** Works for inputs ≤ FLOOR_SQRT_MAX_LONG. */
        SMALL {
          @Override
          long mulMod(long a, long b, long m) {
            /*
             * lowasser, 2015-Feb-12: Benchmarks suggest that changing this to UnsignedLongs.remainder
             * and increasing the threshold to 2^32 doesn't pay for itself, and adding another enum
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 09 16:39:37 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

          if (newArg == null || Objects.equal(args.get(i), newArg)) {
            if (params.get(i).getType().getRawType().isEnum()) {
              continue; // Nothing better we can do if it's single-value enum
            }
            throw new ParameterHasNoDistinctValueException(params.get(i));
          }
          newArgs.set(i, newArg);
          tester.addEqualityGroup(createInstance(factory, newArgs));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:18:12 UTC 2024
    - 32.7K bytes
    - Viewed (0)
Back to top