Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 658 for Fill (0.21 sec)

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

      @Override
      public void clear() {
        Arrays.fill(keys, 0, size, null);
        Arrays.fill(values, 0, size, null);
        Arrays.fill(hashTableKToV, ABSENT);
        Arrays.fill(hashTableVToK, ABSENT);
        Arrays.fill(nextInBucketKToV, 0, size, ABSENT);
        Arrays.fill(nextInBucketVToK, 0, size, ABSENT);
        Arrays.fill(prevInInsertionOrder, 0, size, ABSENT);
        Arrays.fill(nextInInsertionOrder, 0, size, ABSENT);
        size = 0;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 36.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

       * multiset itself).
       *
       * <p>Despite the method name, this method attempts to avoid actually copying the data when it is
       * safe to do so. The exact circumstances under which a copy will or will not be performed are
       * undocumented and subject to change.
       *
       * <p>This method is not type-safe, as it may be called on elements that are not mutually
       * comparable.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/CompactHashing.java

          return new int[buckets];
        }
      }
    
      static void tableClear(Object table) {
        if (table instanceof byte[]) {
          Arrays.fill((byte[]) table, (byte) 0);
        } else if (table instanceof short[]) {
          Arrays.fill((short[]) table, (short) 0);
        } else {
          Arrays.fill((int[]) table, 0);
        }
      }
    
      /**
       * Returns {@code table[index]}, where {@code table} is actually a {@code byte[]}, {@code
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Aug 02 21:41:22 GMT 2021
    - 7.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/CompactHashing.java

          return new int[buckets];
        }
      }
    
      static void tableClear(Object table) {
        if (table instanceof byte[]) {
          Arrays.fill((byte[]) table, (byte) 0);
        } else if (table instanceof short[]) {
          Arrays.fill((short[]) table, (short) 0);
        } else {
          Arrays.fill((int[]) table, 0);
        }
      }
    
      /**
       * Returns {@code table[index]}, where {@code table} is actually a {@code byte[]}, {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Aug 02 21:41:22 GMT 2021
    - 7.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/CompactHashSet.java

          delegate.clear(); // invalidate any iterators left over!
          table = null;
          size = 0;
        } else {
          Arrays.fill(requireElements(), 0, size, null);
          CompactHashing.tableClear(requireTable());
          Arrays.fill(requireEntries(), 0, size, 0);
          this.size = 0;
        }
      }
    
      @J2ktIncompatible
      private void writeObject(ObjectOutputStream stream) throws IOException {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

      }
    
      public void testFull() {
        // Test 32 byte array of 0xFF.
        byte[] fulls = new byte[32];
        Arrays.fill(fulls, (byte) 0xFF);
        assertCrc(0x62a8ab43, fulls);
      }
    
      public void testFull100() {
        // Test 100 byte array of 0xFF.
        byte[] fulls = new byte[100];
        Arrays.fill(fulls, (byte) 0xFF);
        assertCrc(0xbc753add, fulls);
      }
    
      public void testAscending() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Dec 23 18:30:33 GMT 2020
    - 6.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/EnumMultiset.java

          distinctElements++;
        } else if (oldCount > 0 && count == 0) {
          distinctElements--;
        }
        return oldCount;
      }
    
      @Override
      public void clear() {
        Arrays.fill(counts, 0);
        size = 0;
        distinctElements = 0;
      }
    
      abstract class Itr<T> implements Iterator<T> {
        int index = 0;
        int toRemove = -1;
    
        abstract T output(int 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)
  8. guava/src/com/google/common/collect/CompactHashMap.java

          delegate.clear(); // invalidate any iterators left over!
          table = null;
          size = 0;
        } else {
          Arrays.fill(requireKeys(), 0, size, null);
          Arrays.fill(requireValues(), 0, size, null);
          CompactHashing.tableClear(requireTable());
          Arrays.fill(requireEntries(), 0, size, 0);
          this.size = 0;
        }
      }
    
      @J2ktIncompatible
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 39.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/CompactLinkedHashMap.java

      }
    
      @Override
      public void clear() {
        if (needsAllocArrays()) {
          return;
        }
        this.firstEntry = ENDPOINT;
        this.lastEntry = ENDPOINT;
        if (links != null) {
          Arrays.fill(links, 0, size(), 0);
        }
        super.clear();
      }
    
      /*
       * For discussion of the safety of the following methods, see the comments near the end of
       * CompactHashMap.
       */
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/net/PercentEscaper.java

        // We should never get negative values here but if we do it will throw an
        // IndexOutOfBoundsException, so at least it will get spotted.
        if (cp < safeOctets.length && safeOctets[cp]) {
          return null;
        } else if (cp == ' ' && plusForSpace) {
          return PLUS_SIGN;
        } else if (cp <= 0x7F) {
          // Single byte UTF-8 characters
          // Start with "%--" and fill in the blanks
          char[] dest = new char[3];
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.7K bytes
    - Viewed (0)
Back to top