Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 621 - 630 of 2,463 for setS (0.07 seconds)

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

    import java.util.concurrent.TimeUnit;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Static utility methods pertaining to {@link Queue} and {@link Deque} instances. Also see this
     * class's counterparts {@link Lists}, {@link Sets}, and {@link Maps}.
     *
     * @author Kurt Alfred Kluever
     * @since 11.0
     */
    @GwtCompatible
    public final class Queues {
      private Queues() {}
    
      // ArrayBlockingQueue
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 18.2K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/ImmutableListMultimap.java

          Multimap<? extends K, ? extends V> multimap) {
        if (multimap.isEmpty()) {
          return of();
        }
    
        // TODO(lowasser): copy ImmutableSetMultimap by using asList() on the sets
        if (multimap instanceof ImmutableListMultimap) {
          @SuppressWarnings("unchecked") // safe since multimap is not writable
          ImmutableListMultimap<K, V> kvMultimap = (ImmutableListMultimap<K, V>) multimap;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Dec 09 15:58:48 GMT 2025
    - 19.3K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/Queues.java

    import java.util.concurrent.TimeUnit;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Static utility methods pertaining to {@link Queue} and {@link Deque} instances. Also see this
     * class's counterparts {@link Lists}, {@link Sets}, and {@link Maps}.
     *
     * @author Kurt Alfred Kluever
     * @since 11.0
     */
    @GwtCompatible
    public final class Queues {
      private Queues() {}
    
      // ArrayBlockingQueue
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 18K bytes
    - Click Count (0)
  4. internal/lru/lru.go

    		c.addToBucket(ent)
    		return false
    	}
    
    	// Add new item
    	ent := c.evictList.PushFrontExpirable(key, value, now.Add(c.ttl))
    	c.items[key] = ent
    	c.addToBucket(ent) // adds the entry to the appropriate bucket and sets entry.expireBucket
    
    	evict := c.size > 0 && c.evictList.Length() > c.size
    	// Verify size not exceeded
    	if evict {
    		c.removeOldest()
    	}
    	return evict
    }
    
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:35:55 GMT 2026
    - 12.6K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/ConcurrentHashMultiset.java

              }
              return true;
            }
          }
        }
        return false;
      }
    
      // Views
    
      @Override
      Set<E> createElementSet() {
        Set<E> delegate = countMap.keySet();
        return new ForwardingSet<E>() {
          @Override
          protected Set<E> delegate() {
            return delegate;
          }
    
          @Override
          public boolean contains(@Nullable Object object) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 22.3K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

       *
       * <p><b>Warning:</b> Be extremely careful what you do with the {@code asSet} view of a large
       * range set (such as {@code ImmutableRangeSet.of(Range.greaterThan(0))}). Certain operations on
       * such a set can be performed efficiently, but others (such as {@link Set#hashCode} or {@link
       * Collections#frequency}) can cause major performance problems.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 27.5K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

          Multimap<? extends K, ? extends V> multimap) {
        if (multimap.isEmpty()) {
          return of();
        }
    
        // TODO(lowasser): copy ImmutableSetMultimap by using asList() on the sets
        if (multimap instanceof ImmutableListMultimap) {
          @SuppressWarnings("unchecked") // safe since multimap is not writable
          ImmutableListMultimap<K, V> kvMultimap = (ImmutableListMultimap<K, V>) multimap;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Dec 09 15:58:48 GMT 2025
    - 19.5K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/core/collection/ArrayMap.java

        /** Entry as an array */
        protected transient Entry<K, V>[] listTable;
    
        /** Number of elements */
        protected transient int size = 0;
    
        /** View as a {@link Set} */
        protected transient Set<? extends Map.Entry<K, V>> entrySet = null;
    
        /**
         * Constructs an instance with the default initial capacity.
         */
        public ArrayMap() {
            this(INITIAL_CAPACITY);
        }
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat Nov 22 11:21:59 GMT 2025
    - 20.1K bytes
    - Click Count (0)
  9. compat/maven-embedder/src/main/java/org/apache/maven/cli/internal/extension/model/io/xpp3/CoreExtensionsXpp3Reader.java

                    checkUnknownElement(parser, strict);
                }
            }
            return coreExtensions;
        } // -- CoreExtensions parseCoreExtensions( XmlPullParser, boolean )
    
        /**
         * Sets the state of the "add default entities" flag.
         *
         * @param addDefaultEntities a addDefaultEntities object.
         */
        public void setAddDefaultEntities(boolean addDefaultEntities) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Oct 27 13:24:03 GMT 2025
    - 25.3K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/collect/TableCollectionTest.java

        // Not testing rowKeySet() or columnKeySet() of Table.transformValues()
        // since the transformation doesn't affect the row and column key sets.
    
        suite.addTest(
            SetTestSuiteBuilder.using(
                    new TestStringSetGenerator() {
                      @Override
                      protected Set<String> create(String[] elements) {
                        Table<String, Integer, Character> table =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 35.5K bytes
    - Click Count (0)
Back to Top