Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 12 for Ordinal (0.05 seconds)

  1. 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 =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 16.3K bytes
    - Click Count (0)
  2. 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 =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 16.3K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/storage/StorageTypeTest.java

                assertEquals(type, StorageType.valueOf(type.name()));
            }
        }
    
        public void test_ordinal() {
            assertEquals(0, StorageType.S3.ordinal());
            assertEquals(1, StorageType.GCS.ordinal());
            assertEquals(2, StorageType.S3_COMPAT.ordinal());
        }
    
        public void test_name() {
            assertEquals("S3", StorageType.S3.name());
            assertEquals("GCS", StorageType.GCS.name());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 12:58:11 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/sso/SsoResponseTypeTest.java

            assertEquals("LOGOUT", SsoResponseType.LOGOUT.name());
        }
    
        @Test
        public void test_ordinal() {
            // Test ordinal() method returns correct position
            assertEquals(0, SsoResponseType.METADATA.ordinal());
            assertEquals(1, SsoResponseType.LOGOUT.ordinal());
        }
    
        @Test
        public void test_toString() {
            // Test toString() method (default implementation returns name)
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 6.3K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/curl/CurlTest.java

            // ## Test that Method enum ordinal values are sequential ##
    
            // ## Act & Assert ##
            assertEquals(0, Method.GET.ordinal());
            assertEquals(1, Method.POST.ordinal());
            assertEquals(2, Method.PUT.ordinal());
            assertEquals(3, Method.DELETE.ordinal());
            assertEquals(4, Method.HEAD.ordinal());
            assertEquals(5, Method.OPTIONS.ordinal());
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Thu Nov 20 13:34:13 GMT 2025
    - 16.3K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/validation/UriTypeTest.java

        }
    
        // Test ProtocolType ordinal
        @Test
        public void test_protocolTypeOrdinal() {
            assertEquals("WEB.ordinal() should be 0", 0, ProtocolType.WEB.ordinal());
            assertEquals("FILE.ordinal() should be 1", 1, ProtocolType.FILE.ordinal());
        }
    
        // Test protocolType is required
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 21.3K bytes
    - Click Count (0)
  7. 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 = toUnsignedInt(din.readByte());
          dataLength = din.readInt();
    
          /*
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 10 22:28:12 GMT 2026
    - 27.6K bytes
    - Click Count (0)
  8. 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
     */
    enum BloomFilterStrategies implements BloomFilter.Strategy {
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  9. 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++) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 36K bytes
    - Click Count (0)
  10. src/builtin/builtin.go

    // The comparable interface may only be used as a type parameter constraint,
    // not as the type of a variable.
    type comparable interface{ comparable }
    
    // iota is a predeclared identifier representing the untyped integer ordinal
    // number of the current const specification in a (usually parenthesized)
    // const declaration. It is zero-indexed.
    const iota = 0 // Untyped int.
    
    // nil is a predeclared identifier representing the zero value for a
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Feb 26 17:14:40 GMT 2026
    - 13.2K bytes
    - Click Count (0)
Back to Top