Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isReusable (0.05 sec)

  1. guava/src/com/google/common/collect/ImmutableMapEntry.java

        return null;
      }
    
      /**
       * Returns true if this entry has no bucket links and can safely be reused as a terminal entry in
       * a bucket in another map.
       */
      boolean isReusable() {
        return true;
      }
    
      static class NonTerminalImmutableMapEntry<K, V> extends ImmutableMapEntry<K, V> {
        /*
         * Yes, we sometimes set nextInKeyBucket to null, even for this "non-terminal" entry. We don't
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 01 21:42:29 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/RegularImmutableMap.java

      static <K, V> ImmutableMapEntry<K, V> makeImmutable(Entry<K, V> entry, K key, V value) {
        boolean reusable =
            entry instanceof ImmutableMapEntry && ((ImmutableMapEntry<K, V>) entry).isReusable();
        return reusable ? (ImmutableMapEntry<K, V>) entry : new ImmutableMapEntry<K, V>(key, value);
      }
    
      /** Makes an entry usable internally by a new ImmutableMap. */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 15.8K bytes
    - Viewed (0)
Back to top