Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 451 for entries (0.16 sec)

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

      }
    
      // looking for of() with > 10 entries? Use the builder or ofEntries instead.
    
      /**
       * Returns an immutable map containing the given entries, in order.
       *
       * @throws IllegalArgumentException if duplicate keys or values are provided
       * @since 31.0
       */
      @SafeVarargs
      public static <K, V> ImmutableBiMap<K, V> ofEntries(Entry<? extends K, ? extends V>... entries) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/dcerpc/msrpc/samr.java

                int _entriesp = _src.dec_ndr_long();
    
                if ( _entriesp != 0 ) {
                    _src = _src.deferred;
                    int _entriess = _src.dec_ndr_long();
                    int _entriesi = _src.index;
                    _src.advance(12 * _entriess);
    
                    if ( this.entries == null ) {
                        if ( _entriess < 0 || _entriess > 0xFFFF )
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:40:13 GMT 2019
    - 15.1K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java

      private static Map<String, String> toHashMap(Entry<String, String>[] entries) {
        return populate(new HashMap<String, String>(), entries);
      }
    
      // TODO: call conversion constructors or factory methods instead of using
      // populate() on an empty map
      private static <T, M extends Map<T, String>> M populate(M map, Entry<T, String>[] entries) {
        for (Entry<T, String> entry : entries) {
          map.put(entry.getKey(), entry.getValue());
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableBiMapFloodingTest.java

            return ImmutableBiMap.copyOf(sourceMap);
          }
        },
        COPY_OF_ENTRIES {
          @Override
          public ImmutableBiMap<Object, Object> create(List<Entry<?, ?>> entries) {
            return ImmutableBiMap.copyOf(entries);
          }
        },
        BUILDER_PUT_ONE_BY_ONE {
          @Override
          public ImmutableBiMap<Object, Object> create(List<Entry<?, ?>> entries) {
            ImmutableBiMap.Builder<Object, Object> builder = ImmutableBiMap.builder();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableBiMap.java

               * will always copy any entry objects that cannot be safely reused.
               */
              if (valueComparator != null) {
                if (entriesUsed) {
                  entries = Arrays.copyOf(entries, size);
                }
                Arrays.sort(
                    (Entry<K, V>[]) entries, // Entries up to size are not null
                    0,
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Oct 31 16:03:42 GMT 2023
    - 22.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/cache/ReferenceEntry.java

      int getHash();
    
      /** Returns the key for this entry. */
      @CheckForNull
      K getKey();
    
      /*
       * Used by entries that use access order. Access entries are maintained in a doubly-linked list.
       * New entries are added at the tail of the list at write time; stale entries are expired from
       * the head of the list.
       */
    
      /** Returns the time that this entry was last accessed, in ns. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 3.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/CompactHashSet.java

              entryIndex = next - 1;
              entry = entries[entryIndex];
              next = CompactHashing.getNext(entry, mask);
            } while (next != srcNext);
            // here, entries[entryIndex] points to the old entry location; update it
            entries[entryIndex] = CompactHashing.maskCombine(entry, dstIndex + 1, mask);
          }
        } else {
          elements[dstIndex] = null;
          entries[dstIndex] = 0;
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/CompactLinkedHashMapTest.java

                    new TestStringMapGenerator() {
                      @Override
                      protected Map<String, String> create(Entry<String, String>[] entries) {
                        Map<String, String> map = CompactLinkedHashMap.create();
                        for (Entry<String, String> entry : entries) {
                          map.put(entry.getKey(), entry.getValue());
                        }
                        return map;
                      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 21 14:41:51 GMT 2020
    - 6.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/JdkBackedImmutableBiMap.java

      }
    
      private final transient ImmutableList<Entry<K, V>> entries;
      private final Map<K, V> forwardDelegate;
      private final Map<V, K> backwardDelegate;
    
      private JdkBackedImmutableBiMap(
          ImmutableList<Entry<K, V>> entries, Map<K, V> forwardDelegate, Map<V, K> backwardDelegate) {
        this.entries = entries;
        this.forwardDelegate = forwardDelegate;
        this.backwardDelegate = backwardDelegate;
      }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

        Set<Entry<@Nullable String, @Nullable Boolean>> entries = map.entrySet();
        assertTrue(entries.contains(Maps.immutableEntry("a", true)));
        assertTrue(entries.contains(Maps.<String, @Nullable Boolean>immutableEntry("b", null)));
        assertTrue(
            entries.contains(Maps.<@Nullable String, @Nullable Boolean>immutableEntry(null, null)));
    
        assertFalse(entries.contains(Maps.<String, @Nullable Boolean>immutableEntry("c", null)));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 12.2K bytes
    - Viewed (0)
Back to top