Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 98 for Vints (0.15 sec)

  1. android/guava/src/com/google/common/primitives/Ints.java

     *
     * @author Kevin Bourrillion
     * @since 1.0
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public final class Ints extends IntsMethodsForWeb {
      private Ints() {}
    
      /**
       * The number of bytes required to represent a primitive {@code int} value.
       *
       * <p><b>Java 8+ users:</b> use {@link Integer#BYTES} instead.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/TopKSelectorTest.java

        for (List<Integer> list : Collections2.permutations(Ints.asList(1, 2, 3, 4, 5))) {
          TopKSelector<Integer> top = TopKSelector.least(4);
          top.offerAll(list);
          assertThat(top.topK()).containsExactly(1, 2, 3, 4).inOrder();
        }
      }
    
      public void testOfferedThreeK() {
        for (List<Integer> list : Collections2.permutations(Ints.asList(1, 2, 3, 4, 5, 6))) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/TestIntegerSetGenerator.java

    import com.google.common.collect.testing.SampleElements.Ints;
    import java.util.List;
    import java.util.Set;
    
    /**
     * Create integer sets for collection tests.
     *
     * @author Gregory Kick
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class TestIntegerSetGenerator implements TestSetGenerator<Integer> {
      @Override
      public SampleElements<Integer> samples() {
        return new Ints();
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/hash/BloomFilterTest.java

        BloomFilter<byte[]> bf = BloomFilter.create(Funnels.byteArrayFunnel(), 100);
        for (int i = 0; i < 10; i++) {
          bf.put(Ints.toByteArray(i));
        }
    
        BloomFilter<byte[]> copy = SerializableTester.reserialize(bf);
        for (int i = 0; i < 10; i++) {
          assertTrue(copy.mightContain(Ints.toByteArray(i)));
        }
        assertEquals(bf.expectedFpp(), copy.expectedFpp());
    
        SerializableTester.reserializeAndAssert(bf);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/EnumMultiset.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.primitives.Ints;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.io.Serializable;
    import java.util.Arrays;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertEquals(3, (int) enumer.nextElement());
        assertFalse(enumer.hasMoreElements());
      }
    
      private static Enumeration<Integer> enumerate(int... ints) {
        Vector<Integer> vector = new Vector<>(Ints.asList(ints));
        return vector.elements();
      }
    
      public void testToString() {
        Iterator<String> iterator = Lists.newArrayList("yam", "bam", "jam", "ham").iterator();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ConcurrentHashMultiset.java

    import com.google.common.annotations.VisibleForTesting;
    import com.google.common.collect.Serialization.FieldSetter;
    import com.google.common.math.IntMath;
    import com.google.common.primitives.Ints;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import com.google.j2objc.annotations.WeakOuter;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/StatsTesting.java

    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.Iterables;
    import com.google.common.collect.Lists;
    import com.google.common.primitives.Doubles;
    import com.google.common.primitives.Ints;
    import java.math.BigInteger;
    import java.util.List;
    
    /**
     * Inputs, expected outputs, and helper methods for tests of {@link StatsAccumulator}, {@link
     * Stats}, {@link PairedStatsAccumulator}, and {@link PairedStats}.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 22.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/ShortsTest.java

        short[] array = {(short) 0, (short) 1, (short) 2};
    
        List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2);
        List<Short> shorts = Arrays.asList((short) 0, (short) 1, (short) 2);
        List<Integer> ints = Arrays.asList(0, 1, 2);
        List<Float> floats = Arrays.asList((float) 0, (float) 1, (float) 2);
        List<Long> longs = Arrays.asList((long) 0, (long) 1, (long) 2);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/Chars.java

       *     {@code toIndex > fromIndex}
       * @since 32.0.0
       */
      public static void rotate(char[] array, int distance, int fromIndex, int toIndex) {
        // See Ints.rotate for more details about possible algorithms here.
        checkNotNull(array);
        checkPositionIndexes(fromIndex, toIndex, array.length);
        if (array.length <= 1) {
          return;
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23.5K bytes
    - Viewed (0)
Back to top