Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 89 for Younis (0.25 sec)

  1. guava/src/com/google/common/collect/EnumMultiset.java

        if (occurrences == 0) {
          return count(element);
        }
        int index = e.ordinal();
        int oldCount = counts[index];
        if (oldCount == 0) {
          return 0;
        } else if (oldCount <= occurrences) {
          counts[index] = 0;
          distinctElements--;
          size -= oldCount;
        } else {
          counts[index] = oldCount - occurrences;
          size -= occurrences;
        }
        return oldCount;
      }
    
    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)
  2. guava-tests/test/com/google/common/collect/TopKSelectorTest.java

    import java.math.RoundingMode;
    import java.util.Collections;
    import java.util.Comparator;
    import java.util.List;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@code TopKSelector}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    public class TopKSelectorTest extends TestCase {
    
      public void testNegativeK() {
        try {
          TopKSelector.<String>least(-1);
          fail();
    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-tests/test/com/google/common/collect/MultimapBuilderTest.java

    import java.util.SortedMap;
    import java.util.SortedSet;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Tests for {@link MultimapBuilder}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public class MultimapBuilderTest extends TestCase {
    
      @J2ktIncompatible
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 27 09:26:07 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/ListMultimapTestSuiteBuilder.java

    import java.util.Set;
    import junit.framework.TestSuite;
    
    /**
     * Creates, based on your criteria, a JUnit test suite that exhaustively tests a {@code
     * ListMultimap} implementation.
     *
     * @author Louis Wasserman
     */
    @GwtIncompatible
    public class ListMultimapTestSuiteBuilder<K, V>
        extends MultimapTestSuiteBuilder<K, V, ListMultimap<K, V>> {
    
      public static <K, V> ListMultimapTestSuiteBuilder<K, V> using(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapTestSuiteBuilder.java

    import java.util.Set;
    import junit.framework.TestSuite;
    
    /**
     * Creates, based on your criteria, a JUnit test suite that exhaustively tests a {@code SetMultimap}
     * implementation.
     *
     * @author Louis Wasserman
     */
    @GwtIncompatible
    public class SetMultimapTestSuiteBuilder<K, V>
        extends MultimapTestSuiteBuilder<K, V, SetMultimap<K, V>> {
    
      public static <K, V> SetMultimapTestSuiteBuilder<K, V> using(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/MoreCollectors.java

    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Collectors not present in {@code java.util.stream.Collectors} that are not otherwise associated
     * with a {@code com.google.common} type.
     *
     * @author Louis Wasserman
     * @since 33.2.0 (available since 21.0 in guava-jre)
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"})
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java

    import org.junit.Ignore;
    
    /**
     * A generic JUnit test which tests operations on a NavigableMap. Can't be invoked directly; please
     * see {@code NavigableMapTestSuiteBuilder}.
     *
     * @author Jesse Wilson
     * @author Louis Wasserman
     */
    @GwtIncompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    public class NavigableMapNavigationTester<K, V> extends AbstractMapTester<K, V> {
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/LongMathTest.java

    import java.math.BigInteger;
    import java.math.RoundingMode;
    import java.util.EnumSet;
    import java.util.Random;
    import junit.framework.TestCase;
    
    /**
     * Tests for LongMath.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible(emulated = true)
    public class LongMathTest extends TestCase {
      @SuppressWarnings("ConstantOverflow")
      public void testMaxSignedPowerOfTwo() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Multimaps.java

     * "https://github.com/google/guava/wiki/CollectionUtilitiesExplained#multimaps">{@code
     * Multimaps}</a>.
     *
     * @author Jared Levy
     * @author Robert Konigsberg
     * @author Mike Bostock
     * @author Louis Wasserman
     * @since 2.0
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public final class Multimaps {
      private Multimaps() {}
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableSortedMultiset.java

        final Comparator<? super E> comparator;
        final E[] elements;
        final int[] counts;
    
        @SuppressWarnings("unchecked")
        SerializedForm(SortedMultiset<E> multiset) {
          this.comparator = multiset.comparator();
          int n = multiset.entrySet().size();
          elements = (E[]) new Object[n];
          counts = new int[n];
          int i = 0;
          for (Entry<E> entry : multiset.entrySet()) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 29.6K bytes
    - Viewed (0)
Back to top