Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 291 for Zero (0.17 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

      }
    
      @CollectionSize.Require(ZERO)
      public void testEmptyMultisetFirst() {
        assertNull(sortedMultiset.firstEntry());
        try {
          sortedMultiset.elementSet().first();
          fail();
        } catch (NoSuchElementException e) {
        }
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(ZERO)
      public void testEmptyMultisetPollFirst() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 25.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

      }
    
      public void testCount_elementAbsent() {
        when(backingMap.get(KEY)).thenReturn(null);
    
        assertEquals(0, multiset.count(KEY));
      }
    
      public void testAdd_zero() {
        final int INITIAL_COUNT = 32;
    
        when(backingMap.get(KEY)).thenReturn(new AtomicInteger(INITIAL_COUNT));
        assertEquals(INITIAL_COUNT, multiset.add(KEY, 0));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/DoubleMath.java

       * Returns the base 2 logarithm of a double value.
       *
       * <p>Special cases:
       *
       * <ul>
       *   <li>If {@code x} is NaN or less than zero, the result is NaN.
       *   <li>If {@code x} is positive infinity, the result is positive infinity.
       *   <li>If {@code x} is positive or negative zero, the result is negative infinity.
       * </ul>
       *
       * <p>The computed result is within 1 ulp of the exact result.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  4. internal/grid/types.go

    		pool: sync.Pool{
    			New: func() interface{} {
    				var t T
    				return &t
    			},
    		},
    		emptySz: sz,
    	}
    }
    
    func (p *JSONPool[T]) new() *T {
    	var zero T
    	t := p.pool.Get().(*T)
    	*t = zero
    	return t
    }
    
    // JSON is a wrapper around a T object that can be serialized.
    // There is an internal value
    type JSON[T any] struct {
    	p   *JSONPool[T]
    	val *T
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 01 23:42:09 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/ByteStreams.java

       * file is detected. The number of bytes read is returned, possibly zero. Does not close the
       * stream.
       *
       * <p>A caller can detect EOF if the number of bytes read is less than {@code len}. All subsequent
       * calls on the same stream will return zero.
       *
       * <p>If {@code b} is null, a {@code NullPointerException} is thrown. If {@code off} is negative,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  6. schema/field.go

    						v = v.Elem()
    					} else {
    						return nil, true
    					}
    				}
    			}
    
    			fv, zero := v.Interface(), v.IsZero()
    			return fv, zero
    		}
    	}
    
    	if field.Serializer != nil {
    		oldValuerOf := field.ValueOf
    		field.ValueOf = func(ctx context.Context, v reflect.Value) (interface{}, bool) {
    			value, zero := oldValuerOf(ctx, v)
    
    			s, ok := value.(SerializerValuerInterface)
    			if !ok {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 32K bytes
    - Viewed (1)
  7. maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java

                return BIGINTEGER_ITEM;
            }
    
            @Override
            public boolean isNull() {
                return BigInteger.ZERO.equals(value);
            }
    
            @Override
            public int compareTo(Item item) {
                if (item == null) {
                    return BigInteger.ZERO.equals(value) ? 0 : 1; // 1.0 == 1, 1.1 > 1
                }
    
                switch (item.getType()) {
                    case INT_ITEM:
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 26K bytes
    - Viewed (0)
  8. internal/ioutil/ioutil.go

    	c := make(chan ioret[V], 1)
    	go func() {
    		v, err := work(ctx)
    		c <- ioret[V]{val: v, err: err}
    	}()
    
    	select {
    	case v := <-c:
    		return v.val, v.err
    	case <-ctx.Done():
    		var zero V
    		return zero, ctx.Err()
    	}
    }
    
    // DeadlineWorker implements the deadline/timeout resiliency pattern.
    type DeadlineWorker struct {
    	timeout time.Duration
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 11:26:59 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              // primitives
              .put(Object.class, "")
              .put(Number.class, 0)
              .put(UnsignedInteger.class, UnsignedInteger.ZERO)
              .put(UnsignedLong.class, UnsignedLong.ZERO)
              .put(BigInteger.class, BigInteger.ZERO)
              .put(BigDecimal.class, BigDecimal.ZERO)
              .put(CharSequence.class, "")
              .put(String.class, "")
              .put(Pattern.class, Pattern.compile(""))
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 21K bytes
    - Viewed (1)
  10. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              // primitives
              .put(Object.class, "")
              .put(Number.class, 0)
              .put(UnsignedInteger.class, UnsignedInteger.ZERO)
              .put(UnsignedLong.class, UnsignedLong.ZERO)
              .put(BigInteger.class, BigInteger.ZERO)
              .put(BigDecimal.class, BigDecimal.ZERO)
              .put(CharSequence.class, "")
              .put(String.class, "")
              .put(Pattern.class, Pattern.compile(""))
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 20.5K bytes
    - Viewed (0)
Back to top