Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for tableGet (0.88 sec)

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

       * short[]}, or {@code int[]}. When it is a {@code byte[]} or {@code short[]}, the returned value
       * is unsigned, so the range of possible returned values is 0–255 or 0–65535, respectively.
       */
      static int tableGet(Object table, int index) {
        if (table instanceof byte[]) {
          return ((byte[]) table)[index] & BYTE_MASK; // unsigned read
        } else if (table instanceof short[]) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Aug 02 21:41:22 UTC 2021
    - 7.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/CompactHashSet.java

        int tableIndex = hash & mask;
        int next = CompactHashing.tableGet(requireTable(), tableIndex);
        if (next == UNSET) { // uninitialized bucket
          if (newSize > mask) {
            // Resize and add new entry
            mask = resizeTable(mask, CompactHashing.newCapacity(mask), hash, newEntryIndex);
          } else {
            CompactHashing.tableSet(requireTable(), tableIndex, newEntryIndex + 1);
          }
        } else {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 24K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/CompactHashing.java

       * short[]}, or {@code int[]}. When it is a {@code byte[]} or {@code short[]}, the returned value
       * is unsigned, so the range of possible returned values is 0–255 or 0–65535, respectively.
       */
      static int tableGet(Object table, int index) {
        if (table instanceof byte[]) {
          return ((byte[]) table)[index] & BYTE_MASK; // unsigned read
        } else if (table instanceof short[]) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Aug 02 21:41:22 UTC 2021
    - 7.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/CompactHashMap.java

        int tableIndex = hash & mask;
        int next = CompactHashing.tableGet(requireTable(), tableIndex);
        if (next == UNSET) { // uninitialized bucket
          if (newSize > mask) {
            // Resize and add new entry
            mask = resizeTable(mask, CompactHashing.newCapacity(mask), hash, newEntryIndex);
          } else {
            CompactHashing.tableSet(requireTable(), tableIndex, newEntryIndex + 1);
          }
        } else {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 39.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/CompactHashSet.java

        int tableIndex = hash & mask;
        int next = CompactHashing.tableGet(requireTable(), tableIndex);
        if (next == UNSET) { // uninitialized bucket
          if (newSize > mask) {
            // Resize and add new entry
            mask = resizeTable(mask, CompactHashing.newCapacity(mask), hash, newEntryIndex);
          } else {
            CompactHashing.tableSet(requireTable(), tableIndex, newEntryIndex + 1);
          }
        } else {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/CompactHashMap.java

        int tableIndex = hash & mask;
        int next = CompactHashing.tableGet(requireTable(), tableIndex);
        if (next == UNSET) { // uninitialized bucket
          if (newSize > mask) {
            // Resize and add new entry
            mask = resizeTable(mask, CompactHashing.newCapacity(mask), hash, newEntryIndex);
          } else {
            CompactHashing.tableSet(requireTable(), tableIndex, newEntryIndex + 1);
          }
        } else {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 35.8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/StandardTable.java

      // Views
    
      /**
       * Abstract set whose {@code isEmpty()} returns whether the table is empty and whose {@code
       * clear()} clears all table mappings.
       */
      @WeakOuter
      private abstract class TableSet<T> extends ImprovedAbstractSet<T> {
        @Override
        public boolean isEmpty() {
          return backingMap.isEmpty();
        }
    
        @Override
        public void clear() {
          backingMap.clear();
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 30.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/StandardTable.java

      // Views
    
      /**
       * Abstract set whose {@code isEmpty()} returns whether the table is empty and whose {@code
       * clear()} clears all table mappings.
       */
      @WeakOuter
      private abstract class TableSet<T> extends ImprovedAbstractSet<T> {
        @Override
        public boolean isEmpty() {
          return backingMap.isEmpty();
        }
    
        @Override
        public void clear() {
          backingMap.clear();
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 29.8K bytes
    - Viewed (0)
Back to top