Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,297 for init (0.13 sec)

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

          return delegate.add(object);
        }
        int[] entries = requireEntries();
        @Nullable Object[] elements = requireElements();
    
        int newEntryIndex = this.size; // current size, and pointer to the entry to be appended
        int newSize = newEntryIndex + 1;
        int hash = smearedHash(object);
        int mask = hashTableMask();
        int tableIndex = hash & mask;
        int next = CompactHashing.tableGet(requireTable(), tableIndex);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/MacHashFunction.java

          mac.update(b);
        }
    
        @Override
        protected void update(byte[] b) {
          checkNotDone();
          mac.update(b);
        }
    
        @Override
        protected void update(byte[] b, int off, int len) {
          checkNotDone();
          mac.update(b, off, len);
        }
    
        @Override
        protected void update(ByteBuffer bytes) {
          checkNotDone();
          checkNotNull(bytes);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 15 22:31:55 GMT 2022
    - 3.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ObjectCountLinkedHashMap.java

      private int getPredecessor(int entry) {
        return (int) (links[entry] >>> 32);
      }
    
      private int getSuccessor(int entry) {
        return (int) links[entry];
      }
    
      private void setSuccessor(int entry, int succ) {
        long succMask = (~0L) >>> 32;
        links[entry] = (links[entry] & ~succMask) | (succ & succMask);
      }
    
      private void setPredecessor(int entry, int pred) {
        long predMask = (~0L) << 32;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 01 22:07:10 GMT 2021
    - 5.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/FilesTest.java

      }
    
      public void testHash() throws IOException {
        File asciiFile = getTestFile("ascii.txt");
        File i18nFile = getTestFile("i18n.txt");
    
        String init = "d41d8cd98f00b204e9800998ecf8427e";
        assertEquals(init, Hashing.md5().newHasher().hash().toString());
    
        String asciiHash = "e5df5a39f2b8cb71b24e1d8038f93131";
        assertEquals(asciiHash, Files.hash(asciiFile, Hashing.md5()).toString());
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

          // This is not actually a problem, since the foreach only needs this.futures to be non-null
          // at the beginning of the loop.
          int i = 0;
          for (ListenableFuture<? extends InputT> future : futures) {
            int index = i++;
            future.addListener(
                () -> {
                  try {
                    if (future.isCancelled()) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/AbstractTester.java

      public final void init(
          G subjectGenerator, String suiteName, @Nullable Runnable setUp, @Nullable Runnable tearDown) {
        this.subjectGenerator = subjectGenerator;
        this.suiteName = suiteName;
        this.setUp = setUp;
        this.tearDown = tearDown;
      }
    
      // public so that it can be referenced in generated GWT tests.
      public final void init(G subjectGenerator, String suiteName) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/CompactLinkedHashSet.java

       */
    
      private int getPredecessor(int entry) {
        return requirePredecessors()[entry] - 1;
      }
    
      @Override
      int getSuccessor(int entry) {
        return requireSuccessors()[entry] - 1;
      }
    
      private void setSuccessor(int entry, int succ) {
        requireSuccessors()[entry] = succ + 1;
      }
    
      private void setPredecessor(int entry, int pred) {
        requirePredecessors()[entry] = pred + 1;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

          return;
        }
        int newThreshold = 1 + (int) (newCapacity * loadFactor);
        int[] newTable = newTable(newCapacity);
        long[] entries = this.entries;
    
        int mask = newTable.length - 1;
        for (int i = 0; i < size; i++) {
          long oldEntry = entries[i];
          int hash = getHash(oldEntry);
          int tableIndex = hash & mask;
          int next = newTable[tableIndex];
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 01 22:07:10 GMT 2021
    - 15K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/FilesTest.java

      }
    
      public void testHash() throws IOException {
        File asciiFile = getTestFile("ascii.txt");
        File i18nFile = getTestFile("i18n.txt");
    
        String init = "d41d8cd98f00b204e9800998ecf8427e";
        assertEquals(init, Hashing.md5().newHasher().hash().toString());
    
        String asciiHash = "e5df5a39f2b8cb71b24e1d8038f93131";
        assertEquals(asciiHash, Files.hash(asciiFile, Hashing.md5()).toString());
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

        }
        ATOMIC_HELPER = helper;
        // Log after all static init is finished; if an installed logger uses any Futures methods, it
        // shouldn't break in cases where reflection is missing/broken.
        if (thrownReflectionFailure != null) {
          log.get().log(Level.SEVERE, "SafeAtomicHelper is broken!", thrownReflectionFailure);
        }
      }
    
      AggregateFutureState(int remainingFutures) {
        this.remaining = remainingFutures;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 8.5K bytes
    - Viewed (0)
Back to top