Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for weigh (0.06 sec)

  1. guava-tests/test/com/google/common/cache/TestingWeighers.java

        }
    
        @Override
        public int weigh(Object key, Object value) {
          return constant;
        }
      }
    
      static final class IntKeyWeigher implements Weigher<Integer, Object> {
        @Override
        public int weigh(Integer key, Object value) {
          return key;
        }
      }
    
      static final class IntValueWeigher implements Weigher<Object, Integer> {
        @Override
        public int weigh(Object key, Integer value) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/cache/CacheBuilder.java

        checkArgument(maximumWeight >= 0, "maximum weight must not be negative");
        this.maximumWeight = maximumWeight;
        return this;
      }
    
      /**
       * Specifies the weigher to use in determining the weight of entries. Entry weight is taken into
       * consideration by {@link #maximumWeight(long)} when determining which entries to evict, and use
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 51.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

      }
    
      public void testSetWeigher() {
        Weigher<Object, Object> testWeigher =
            new Weigher<Object, Object>() {
              @Override
              public int weigh(Object key, Object value) {
                return 42;
              }
            };
        LocalCache<Object, Object> map =
            makeLocalCache(createCacheBuilder().maximumWeight(1).weigher(testWeigher));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 110.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/http/ne.css

        float: none;
        width: auto;
        height: auto
    }
    a.sort {
        display: block;
        float: left;
        width: 100px;
        height: 15px;
        font-family: Verdana, sans-serif;
        font-size: 8pt;
        font-weight: bold;
        text-decoration: none;
        color: #000000;
        background-color: #d0d0d0;
        border-top-color: #ffffff;
        border-bottom-color: #707070;
        border-right-color: #707070;
        border-left-color: #ffffff;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/crawler/FessCrawlerThread.java

         * @param parentUrl the parent URL that referenced this child URL
         * @param weight the weight/priority of the child URL
         * @param depth the crawling depth of the child URL
         */
        @Override
        protected void storeChildUrl(final String childUrl, final String parentUrl, final float weight, final int depth) {
            if (StringUtil.isNotBlank(childUrl)) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/AppendableWriter.java

      @Override
      public void write(char[] cbuf, int off, int len) throws IOException {
        checkNotClosed();
        // It turns out that creating a new String is usually as fast, or faster
        // than wrapping cbuf in a light-weight CharSequence.
        target.append(new String(cbuf, off, len));
      }
    
      /*
       * Override a few functions for performance reasons to avoid creating unnecessary strings.
       */
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:37:28 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancer.java

            }
            return leastLoadedChannel != null ? leastLoadedChannel : channels.iterator().next();
        }
    
        private ChannelInfo selectWeightedRandom(Collection<ChannelInfo> channels) {
            // Calculate total weight
            int totalWeight = 0;
            for (ChannelInfo channel : channels) {
                totalWeight += channel.getScore();
            }
    
            if (totalWeight == 0) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  8. docs/smb3-features/03-multi-channel-design.md

                .orElseThrow();
        }
        
        private ChannelInfo selectWeightedRandom(Collection<ChannelInfo> channels) {
            // Calculate total weight
            int totalWeight = channels.stream()
                .mapToInt(ChannelInfo::getScore)
                .sum();
            
            if (totalWeight == 0) {
                // All channels have zero score, pick randomly
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 39.6K bytes
    - Viewed (0)
Back to top