Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 93 for setLength (0.28 sec)

  1. guava-tests/test/com/google/common/collect/InternersTest.java

    import static org.junit.Assert.assertThrows;
    
    import com.google.common.base.Function;
    import com.google.common.collect.Interners.InternerImpl;
    import com.google.common.collect.MapMakerInternalMap.Strength;
    import com.google.common.testing.GcFinalization;
    import com.google.common.testing.NullPointerTester;
    import java.lang.ref.WeakReference;
    import junit.framework.TestCase;
    
    /**
     * Unit test for {@link Interners}.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/CacheReferencesTest.java

            }
          };
    
      private CacheBuilderFactory factoryWithAllKeyStrengths() {
        return new CacheBuilderFactory()
            .withKeyStrengths(ImmutableSet.of(STRONG, Strength.WEAK))
            .withValueStrengths(ImmutableSet.of(STRONG, Strength.WEAK, Strength.SOFT));
      }
    
      private Iterable<LoadingCache<Key, String>> caches() {
        CacheBuilderFactory factory = factoryWithAllKeyStrengths();
        return Iterables.transform(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 6.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/BaseEncodingTest.java

        // test separators work
        for (int sepLength = 3; sepLength <= 5; sepLength++) {
          for (String separator : ImmutableList.of(",", "\n", ";;", "")) {
            testEncoding(
                encoding.withSeparator(separator, sepLength),
                decoded,
                Joiner.on(separator).join(Splitter.fixedLength(sepLength).split(encoded)));
          }
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Aug 25 16:34:08 GMT 2022
    - 24.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MapMaker.java

        VALUE
      }
    
      MapMaker setValueStrength(Strength strength) {
        checkState(valueStrength == null, "Value strength was already set to %s", valueStrength);
        valueStrength = checkNotNull(strength);
        if (strength != Strength.STRONG) {
          // STRONG could be used during deserialization.
          useCustomMap = true;
        }
        return this;
      }
    
      Strength getValueStrength() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 12.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/BaseEncodingTest.java

        // test separators work
        for (int sepLength = 3; sepLength <= 5; sepLength++) {
          for (String separator : ImmutableList.of(",", "\n", ";;", "")) {
            testEncoding(
                encoding.withSeparator(separator, sepLength),
                decoded,
                Joiner.on(separator).join(Splitter.fixedLength(sepLength).split(encoded)));
          }
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 24.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        checkStrength(map, Strength.WEAK, Strength.STRONG);
        assertThat(map.entryHelper)
            .isInstanceOf(MapMakerInternalMap.WeakKeyStrongValueEntry.Helper.class);
      }
    
      public void testSetWeakValues() {
        MapMakerInternalMap<Object, Object, ?, ?> map = makeMap(createMapMaker().weakValues());
        checkStrength(map, Strength.STRONG, Strength.WEAK);
        assertThat(map.entryHelper)
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        checkStrength(map, Strength.WEAK, Strength.STRONG);
        assertThat(map.entryHelper)
            .isInstanceOf(MapMakerInternalMap.WeakKeyStrongValueEntry.Helper.class);
      }
    
      public void testSetWeakValues() {
        MapMakerInternalMap<Object, Object, ?, ?> map = makeMap(createMapMaker().weakValues());
        checkStrength(map, Strength.STRONG, Strength.WEAK);
        assertThat(map.entryHelper)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  8. clause/locking.go

    	LockingOptionsNoWait     = "NOWAIT"
    )
    
    type Locking struct {
    	Strength string
    	Table    Table
    	Options  string
    }
    
    // Name where clause name
    func (locking Locking) Name() string {
    	return "FOR"
    }
    
    // Build build where clause
    func (locking Locking) Build(builder Builder) {
    	builder.WriteString(locking.Strength)
    	if locking.Table.Name != "" {
    		builder.WriteString(" OF ")
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Dec 15 08:32:56 GMT 2023
    - 773 bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/CacheReferencesTest.java

            }
          };
    
      private CacheBuilderFactory factoryWithAllKeyStrengths() {
        return new CacheBuilderFactory()
            .withKeyStrengths(ImmutableSet.of(STRONG, Strength.WEAK))
            .withValueStrengths(ImmutableSet.of(STRONG, Strength.WEAK, Strength.SOFT));
      }
    
      private Iterable<LoadingCache<Key, String>> caches() {
        CacheBuilderFactory factory = factoryWithAllKeyStrengths();
        return Iterables.transform(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 6.1K bytes
    - Viewed (0)
  10. cmd/httprange.go

    type HTTPRangeSpec struct {
    	// Does the range spec refer to a suffix of the object?
    	IsSuffixLength bool
    
    	// Start and end offset specified in range spec
    	Start, End int64
    }
    
    // GetLength - get length of range
    func (h *HTTPRangeSpec) GetLength(resourceSize int64) (rangeLength int64, err error) {
    	switch {
    	case resourceSize < 0:
    		return 0, errors.New("Resource size cannot be negative")
    
    	case h == nil:
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jul 24 14:56:28 GMT 2023
    - 5.9K bytes
    - Viewed (0)
Back to top