Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for initialCapacity (0.08 sec)

  1. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/MapMaker.java

     */
    @ElementTypesAreNonnullByDefault
    public final class MapMaker {
      private int initialCapacity = 16;
    
      public MapMaker() {}
    
      @CanIgnoreReturnValue
      public MapMaker initialCapacity(int initialCapacity) {
        if (initialCapacity < 0) {
          throw new IllegalArgumentException();
        }
        this.initialCapacity = initialCapacity;
        return this;
      }
    
      @CanIgnoreReturnValue
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/TextUtil.java

                        return true;
                    }
                }
                return false;
            }
    
            public TextNormalizeContext initialCapacity(final int initialCapacity) {
                this.initialCapacity = initialCapacity;
                return this;
            }
    
            public TextNormalizeContext maxAlphanumTermSize(final int maxAlphanumTermSize) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/MapMakerTest.java

        assertThrows(IllegalArgumentException.class, () -> maker.initialCapacity(-1));
      }
    
      // TODO(cpovirk): enable when ready (apparently after a change to our GWT emulation)
      public void xtestInitialCapacity_setTwice() {
        MapMaker maker = new MapMaker().initialCapacity(16);
        try {
          // even to the same value is not allowed
          maker.initialCapacity(16);
          fail();
        } catch (IllegalStateException expected) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/MapMakerTest.java

        assertThrows(IllegalArgumentException.class, () -> maker.initialCapacity(-1));
      }
    
      // TODO(cpovirk): enable when ready (apparently after a change to our GWT emulation)
      public void xtestInitialCapacity_setTwice() {
        MapMaker maker = new MapMaker().initialCapacity(16);
        try {
          // even to the same value is not allowed
          maker.initialCapacity(16);
          fail();
        } catch (IllegalStateException expected) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/collection/CaseInsensitiveSet.java

            addAll(c);
        }
    
        /**
         * {@link CaseInsensitiveSet}を作成します。
         *
         * @param initialCapacity
         *            初期容量
         */
        public CaseInsensitiveSet(final int initialCapacity) {
            map = new CaseInsensitiveMap<>(initialCapacity);
        }
    
        @Override
        public Iterator<String> iterator() {
            return map.keySet().iterator();
        }
    
        @Override
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/collection/LruHashMap.java

         * {@link LruHashMap}を作成します。
         *
         * @param limitSize
         *            エントリ数の上限
         * @param initialCapacity
         *            初期容量
         * @param loadFactor
         *            負荷係数
         */
        public LruHashMap(final int limitSize, final int initialCapacity, final float loadFactor) {
            super(initialCapacity, loadFactor, true);
            this.limitSize = limitSize;
        }
    
        /**
         * エントリ数の上限を返します。
         *
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/util/TextUtilTest.java

            }
        }
    
        public static String normalizeText(final Reader reader, final int initialCapacity, final int maxAlphanumTermSize,
                final int maxSymbolTermSize, final boolean removeDuplication) {
            return new TextNormalizeContext(reader).initialCapacity(initialCapacity).maxAlphanumTermSize(maxAlphanumTermSize)
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/io/FileUtil.java

         *
         * @param reader
         *            リーダー
         * @param initialCapacity
         *            バッファの初期容量
         * @return リーダーから読み込んだ文字列
         */
        protected static String read(final Reader reader, final int initialCapacity) {
            int bufferSize;
            if (initialCapacity > 0 && initialCapacity <= MAX_BUF_SIZE) {
                bufferSize = initialCapacity;
            } else {
                bufferSize = DEFAULT_BUF_SIZE;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 9K bytes
    - Viewed (0)
  9. guava-tests/benchmark/com/google/common/cache/SegmentBenchmark.java

      private Segment<Object, Object> segment;
    
      @BeforeExperiment
      void setUp() {
        LocalCache<Object, Object> cache =
            new LocalCache<>(
                CacheBuilder.newBuilder().concurrencyLevel(1).initialCapacity(capacity), null);
        checkState(cache.segments.length == 1);
        segment = cache.segments[0];
        checkState(segment.table.length() == capacity);
        for (int i = 0; i < segment.threshold; i++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 23 16:59:39 UTC 2019
    - 2.1K bytes
    - Viewed (0)
Back to top