Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1601 - 1610 of 4,096 for long (0.02 sec)

  1. android/guava/src/com/google/common/math/PairedStatsAccumulator.java

     * the License.
     */
    
    package com.google.common.math;
    
    import static com.google.common.base.Preconditions.checkState;
    import static com.google.common.primitives.Doubles.isFinite;
    import static java.lang.Double.NaN;
    import static java.lang.Double.isNaN;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.primitives.Doubles;
    
    /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 17:02:53 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  2. src/archive/tar/strconv.go

    	if n := len(b) - len(s) - 1; n > 0 {
    		s = strings.Repeat("0", n) + s
    	}
    	f.formatString(b, s)
    }
    
    // fitsInOctal reports whether the integer x fits in a field n-bytes long
    // using octal encoding with the appropriate NUL terminator.
    func fitsInOctal(n int, x int64) bool {
    	octBits := uint(n-1) * 3
    	return x >= 0 && (n >= 22 || x < 1<<octBits)
    }
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Aug 01 14:28:42 UTC 2023
    - 9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

      }
    
      public void testCountOverflow_doesNotThrow() {
        PairedStatsAccumulator accumulator = new PairedStatsAccumulator();
        accumulator.add(ONE_VALUE, OTHER_ONE_VALUE);
        for (int power = 1; power < Long.SIZE - 1; power++) {
          accumulator.addAll(accumulator.snapshot());
        }
        // Should overflow without throwing.
        accumulator.addAll(accumulator.snapshot());
        assertThat(accumulator.count()).isLessThan(0L);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 03 21:17:33 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/GeneralRange.java

        this.upperBoundType = checkNotNull(upperBoundType);
    
        // Trigger any exception that the comparator would throw for the endpoints.
        /*
         * uncheckedCastNullableTToT is safe as long as the callers are careful to pass a "real" T
         * whenever they pass `true` for the matching `has*Bound` parameter.
         */
        if (hasLowerBound) {
          int unused =
              comparator.compare(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/CompactLinkedHashSet.java

      // TODO(user): predecessors and successors should be collocated (reducing cache misses).
      // Might also explore collocating all of [hash, next, predecessor, successor] fields of an
      // entry in a *single* long[], though that reduces the maximum size of the set by a factor of 2
    
      /**
       * Pointer to the predecessor of an entry in insertion order. ENDPOINT indicates a node is the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 09 00:15:47 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/RegularImmutableBiMap.java

        InverseSerializedForm(ImmutableBiMap<K, V> forward) {
          this.forward = forward;
        }
    
        Object readResolve() {
          return forward.inverse();
        }
    
        private static final long serialVersionUID = 1;
      }
    
      // redeclare to help optimizers with b/310253115
      @SuppressWarnings("RedundantOverride")
      @Override
      @J2ktIncompatible // serialization
      @GwtIncompatible // serialization
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

        public void testPerformance() throws Exception {
            int num = 100000;
            Map<String, Object> hmap = new HashMap<String, Object>();
            Map<String, Object> amap = new ArrayMap<String, Object>();
    
            long start = System.currentTimeMillis();
            for (int i = 0; i < num; i++) {
                hmap.put(String.valueOf(i), null);
            }
            System.out.println("HashMap.put:" + (System.currentTimeMillis() - start));
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/BooleansTest.java

        assertThat(dim1 * dim2).isAtLeast(0);
        testConcatOverflow(dim1, dim2);
      }
    
      private static void testConcatOverflow(int arraysDim1, int arraysDim2) {
        assertThat((long) arraysDim1 * arraysDim2).isNotEqualTo((long) (arraysDim1 * arraysDim2));
    
        boolean[][] arrays = new boolean[arraysDim1][];
        // it's shared to avoid using too much memory in tests
        boolean[] sharedArray = new boolean[arraysDim2];
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/collection/SLinkedList.java

    import java.io.IOException;
    import java.io.ObjectInput;
    import java.io.ObjectOutput;
    import java.lang.reflect.Array;
    import java.util.NoSuchElementException;
    
    /**
     * Seasar2用の連結リストです。
     *
     * @author higa
     * @param <E>
     *            要素の型
     *
     */
    public class SLinkedList<E> implements Cloneable, Externalizable {
    
        static final long serialVersionUID = 1L;
    
        private transient Entry header = new Entry(null, null, null);
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/admin/dict/kuromoji/AdminDictKuromojiAction.java

        //                                               -------
        @Execute
        @Secured({ ROLE, ROLE + VIEW })
        public HtmlResponse details(final String dictId, final int crudMode, final long id) {
            verifyCrudMode(crudMode, CrudMode.DETAILS, dictId);
            saveToken();
            return asDetailsHtml().useForm(EditForm.class, op -> {
                op.setup(form -> {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 18.8K bytes
    - Viewed (0)
Back to top