Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 978 for Entry (0.18 sec)

  1. android/guava/src/com/google/common/graph/MapIteratorCache.java

      V getIfCached(@CheckForNull Object key) {
        Entry<K, V> entry = cacheEntry; // store local reference for thread-safety
    
        // Check cache. We use == on purpose because it's cheaper and a cache miss is ok.
        if (entry != null && entry.getKey() == key) {
          return entry.getValue();
        }
        return null;
      }
    
      void clearCache() {
        cacheEntry = null;
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 4.7K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultimapTester.java

        extends AbstractContainerTester<M, Entry<K, V>> {
    
      private M multimap;
    
      protected M multimap() {
        return multimap;
      }
    
      /**
       * @return an array of the proper size with {@code null} as the key of the middle element.
       */
      protected Entry<K, V>[] createArrayWithNullKey() {
        Entry<K, V>[] array = createSamplesArray();
        int nullKeyLocation = getNullLocation();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/AbstractSortedMultiset.java

        return comparator;
      }
    
      @Override
      @CheckForNull
      public Entry<E> firstEntry() {
        Iterator<Entry<E>> entryIterator = entryIterator();
        return entryIterator.hasNext() ? entryIterator.next() : null;
      }
    
      @Override
      @CheckForNull
      public Entry<E> lastEntry() {
        Iterator<Entry<E>> entryIterator = descendingEntryIterator();
        return entryIterator.hasNext() ? entryIterator.next() : null;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/TestSortedMapGenerator.java

      /**
       * Returns an entry with a key less than the keys of the {@link #samples()} and less than the key
       * of {@link #belowSamplesGreater()}.
       */
      Entry<K, V> belowSamplesLesser();
    
      /**
       * Returns an entry with a key less than the keys of the {@link #samples()} but greater than the
       * key of {@link #belowSamplesLesser()}.
       */
      Entry<K, V> belowSamplesGreater();
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

      }
    
      @Override
      protected void expectMissing(Entry<K, V>... entries) {
        for (Entry<K, V> entry : entries) {
          assertFalse("Should not contain entry " + entry, actualContents().contains(entry));
          assertFalse(
              "Should not contain key " + entry.getKey() + " mapped to value " + entry.getValue(),
              equal(getMap().get(entry.getKey()), entry.getValue()));
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/MultisetsImmutableEntryTest.java

      }
    
      public void testToStringNull() {
        assertEquals("null", entry(NE, 1).toString());
        assertEquals("null x 2", entry(NE, 2).toString());
      }
    
      public void testEquals() {
        assertEquals(control("foo", 1), entry("foo", 1));
        assertEquals(control("bar", 2), entry("bar", 2));
        assertFalse(control("foo", 1).equals(entry("foo", 2)));
        assertFalse(entry("foo", 1).equals(control("bar", 1)));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/TestStringSortedMapGenerator.java

      @Override
      public Entry<String, String> aboveSamplesGreater() {
        return Helpers.mapEntry("~~ b", "above view");
      }
    
      @Override
      public Iterable<Entry<String, String>> order(List<Entry<String, String>> insertionOrder) {
        return orderEntriesByKey(insertionOrder);
      }
    
      @Override
      protected abstract SortedMap<String, String> create(Entry<String, String>[] entries);
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2K bytes
    - Viewed (0)
  8. cmd/consolelogger.go

    	}
    }
    
    // Content returns the console stdout log
    func (sys *HTTPConsoleLoggerSys) Content() (logs []log.Entry) {
    	sys.RLock()
    	sys.logBuf.Do(func(p interface{}) {
    		if p != nil {
    			lg, ok := p.(log.Info)
    			if ok {
    				if (lg.Entry != log.Entry{}) {
    					logs = append(logs, lg.Entry)
    				}
    			}
    		}
    	})
    	sys.RUnlock()
    
    	return
    }
    
    // Cancel - cancels the target
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/AbstractMultimap.java

        }
      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean putAll(Multimap<? extends K, ? extends V> multimap) {
        boolean changed = false;
        for (Entry<? extends K, ? extends V> entry : multimap.entries()) {
          changed |= put(entry.getKey(), entry.getValue());
        }
        return changed;
      }
    
      @CanIgnoreReturnValue
      @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 7.1K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java

          Collection<Entry<K, V>> originalEntries = mapGenerator.getSampleElements(elements.length);
    
          // Create a copy of that, with the desired value for each key
          Collection<Entry<K, V>> entries = new ArrayList<>(elements.length);
          int i = 0;
          for (Entry<K, V> entry : originalEntries) {
            entries.add(Helpers.mapEntry(keysArray[i++], entry.getValue()));
          }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 18.2K bytes
    - Viewed (0)
Back to top