Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 26 for setInstance (0.06 seconds)

  1. android/guava-tests/test/com/google/common/collect/MutableClassToInstanceMapTest.java

        assertThat(map.get(Integer.class)).isNull();
        assertThat(map.getInstance(Integer.class)).isNull();
    
        map.put(Long.class, null);
        assertThat(map.get(Long.class)).isNull();
        assertThat(map.getInstance(Long.class)).isNull();
      }
    
      public void testPrimitiveAndWrapper() {
        assertThat(map.getInstance(int.class)).isNull();
        assertThat(map.getInstance(Integer.class)).isNull();
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 31 20:00:15 GMT 2026
    - 5K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableClassToInstanceMapTest.java

        in.put(Double.class, Math.PI);
        ClassToInstanceMap<Number> map = ImmutableClassToInstanceMap.copyOf(in);
        assertEquals(2, map.size());
    
        Number zero = map.getInstance(Number.class);
        assertEquals(0, zero);
    
        Double pi = map.getInstance(Double.class);
        assertThat(pi).isEqualTo(Math.PI);
    
        assertThat(ImmutableClassToInstanceMap.copyOf(map)).isSameInstanceAs(map);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 31 20:00:15 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/exec/ThumbnailGenerator.java

                        + numOfThreads + "]";
            }
    
        }
    
        static void initializeProbes() {
            // Force probes to be loaded
            ProcessProbe.getInstance();
            OsProbe.getInstance();
            JvmInfo.jvmInfo();
        }
    
        /**
         * Main entry point for the thumbnail generator application.
         *
         * @param args command-line arguments
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 10.4K bytes
    - Click Count (0)
  4. samples/static-server/src/main/java/okhttp3/sample/SampleServer.java

          throws GeneralSecurityException, IOException {
        KeyStore keystore = KeyStore.getInstance(KeyStore.getDefaultType());
        try (InputStream in = new FileInputStream(keystoreFile)) {
          keystore.load(in, password.toCharArray());
        }
        KeyManagerFactory keyManagerFactory =
            KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
        keyManagerFactory.init(keystore, password.toCharArray());
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 11 02:37:00 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  5. gorm.go

    	}
    
    	if config.Initialized {
    		tx = tx.getInstance()
    	}
    
    	return tx
    }
    
    // WithContext change current instance db's context to ctx
    func (db *DB) WithContext(ctx context.Context) *DB {
    	return db.Session(&Session{Context: ctx})
    }
    
    // Debug start debug mode
    func (db *DB) Debug() (tx *DB) {
    	tx = db.getInstance()
    	return tx.Session(&Session{
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:35:55 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/exec/Crawler.java

         * to ensure they are available for system monitoring during crawling.
         */
        static void initializeProbes() {
            // Force probes to be loaded
            ProcessProbe.getInstance();
            OsProbe.getInstance();
            JvmInfo.jvmInfo();
        }
    
        /**
         * Main entry point for the crawler application.
         * Parses command-line arguments, initializes the application container,
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 32.4K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

        } catch (IllegalStateException expected) {
        } finally {
          Providers.setProviderList(providers);
        }
      }
    
      public void testMultipleUpdates() throws Exception {
        Mac mac = Mac.getInstance("HmacSHA1");
        mac.init(SHA1_KEY);
        mac.update("hello".getBytes(UTF_8));
        mac.update("world".getBytes(UTF_8));
    
        assertEquals(
            HashCode.fromBytes(mac.doFinal()),
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 14.2K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/exec/SuggestCreator.java

        }
    
        /**
         * Initializes the necessary probes for monitoring system resources.
         */
        static void initializeProbes() {
            // Force probes to be loaded
            ProcessProbe.getInstance();
            OsProbe.getInstance();
            JvmInfo.jvmInfo();
        }
    
        /**
         * The main method for the SuggestCreator application.
         *
         * @param args The command-line arguments.
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 12.1K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java

      }
    
      private static void assertMessageDigestHashing(byte[] input, String algorithmName)
          throws NoSuchAlgorithmException {
        MessageDigest digest = MessageDigest.getInstance(algorithmName);
        assertEquals(
            HashCode.fromBytes(digest.digest(input)), ALGORITHMS.get(algorithmName).hashBytes(input));
        for (int bytes = 4; bytes <= digest.getDigestLength(); bytes++) {
          assertEquals(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  10. generics.go

    	return c.g.apply(ctx).CreateInBatches(r, batchSize).Error
    }
    
    type chainG[T any] struct {
    	execG[T]
    }
    
    func (c chainG[T]) getInstance() *DB {
    	var r T
    	return c.g.apply(context.Background()).Model(r).getInstance()
    }
    
    func (c chainG[T]) with(v op) chainG[T] {
    	return chainG[T]{
    		execG: execG[T]{g: &g[T]{
    			db:  c.g.db,
    			ops: append(append([]op(nil), c.g.ops...), v),
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:34:24 GMT 2026
    - 26K bytes
    - Click Count (0)
Back to Top