Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for ordine (0.22 sec)

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

        }
        Enum<?> e = (Enum<?>) element;
        return counts[e.ordinal()];
      }
    
      // Modification Operations
      @CanIgnoreReturnValue
      @Override
      public int add(E element, int occurrences) {
        checkIsE(element);
        checkNonnegative(occurrences, "occurrences");
        if (occurrences == 0) {
          return count(element);
        }
        int index = element.ordinal();
        int oldCount = counts[index];
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

      }
    
      public void testDifferentOrderings_noViolations() {
        lock3.lock(); // MyOrder, ordinal() == 3
        lock01.lock(); // OtherOrder, ordinal() == 1
      }
    
      public void testExplicitOrderings_generalCycleDetection() {
        lock3.lock(); // MyOrder, ordinal() == 3
        lock01.lock(); // OtherOrder, ordinal() == 1
    
        lock3.unlock();
        PotentialDeadlockException expected =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.1K bytes
    - Viewed (1)
  3. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

          nodes.add(node);
          map.put(key, node);
        }
        // Pre-populate all allowedPriorLocks with nodes of smaller ordinal.
        for (int i = 1; i < numKeys; i++) {
          nodes.get(i).checkAcquiredLocks(Policies.THROW, nodes.subList(0, i));
        }
        // Pre-populate all disallowedPriorLocks with nodes of larger ordinal.
        for (int i = 0; i < numKeys - 1; i++) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

      private static final ImmutableSet<String> SOMEWHERE_UNDER_PS =
          ImmutableSet.of(
              "foo.bar.google.com",
              "a.b.c.1.2.3.ca.us",
              "site.jp",
              "uomi-online.kir.jp",
              "jprs.co.jp",
              "site.quick.jp",
              "site.tenki.jp",
              "site.or.jp",
              "site.gr.jp",
              "site.ne.jp",
              "site.ac.jp",
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 17.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

      }
    
      public void testDifferentOrderings_noViolations() {
        lock3.lock(); // MyOrder, ordinal() == 3
        lock01.lock(); // OtherOrder, ordinal() == 1
      }
    
      public void testExplicitOrderings_generalCycleDetection() {
        lock3.lock(); // MyOrder, ordinal() == 3
        lock01.lock(); // OtherOrder, ordinal() == 1
    
        lock3.unlock();
        PotentialDeadlockException expected =
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/EnumMultiset.java

        }
        Enum<?> e = (Enum<?>) element;
        return counts[e.ordinal()];
      }
    
      // Modification Operations
      @CanIgnoreReturnValue
      @Override
      public int add(E element, int occurrences) {
        checkIsE(element);
        checkNonnegative(occurrences, "occurrences");
        if (occurrences == 0) {
          return count(element);
        }
        int index = element.ordinal();
        int oldCount = counts[index];
    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)
  7. guava-tests/test/com/google/common/net/InternetDomainNameTest.java

      private static final ImmutableSet<String> SOMEWHERE_UNDER_PS =
          ImmutableSet.of(
              "foo.bar.google.com",
              "a.b.c.1.2.3.ca.us",
              "site.jp",
              "uomi-online.kir.jp",
              "jprs.co.jp",
              "site.quick.jp",
              "site.tenki.jp",
              "site.or.jp",
              "site.gr.jp",
              "site.ne.jp",
              "site.ac.jp",
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 17.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableSet.java

        static final int MAX_RUN_MULTIPLIER = 13;
    
        /**
         * Checks the whole hash table for poor hash distribution. Takes O(n) in the worst case, O(n /
         * log n) on average.
         *
         * <p>The online hash flooding detecting in RegularSetBuilderImpl.add can detect e.g. many
         * exactly matching hash codes, which would cause construction to take O(n^2), but can't detect
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/BloomFilter.java

        int dataLength = -1;
        try {
          DataInputStream din = new DataInputStream(in);
          // currently this assumes there is no negative ordinal; will have to be updated if we
          // add non-stateless strategies (for which we've reserved negative ordinals; see
          // Strategy.ordinal()).
          strategyOrdinal = din.readByte();
          numHashFunctions = UnsignedBytes.toInt(din.readByte());
          dataLength = din.readInt();
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/hash/BloomFilterStrategies.java

     * introduction of new versions).
     *
     * <p>Important: the order of the constants cannot change, and they cannot be deleted - we depend on
     * their ordinal for BloomFilter serialization.
     *
     * @author Dimitris Andreou
     * @author Kurt Alfred Kluever
     */
    @ElementTypesAreNonnullByDefault
    enum BloomFilterStrategies implements BloomFilter.Strategy {
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 10.7K bytes
    - Viewed (0)
Back to top