Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 141 - 150 of 823 for number1 (0.13 seconds)

  1. guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

      }
    
      public void testEmpty() {
        assertEquals(0, ImmutableTypeToInstanceMap.of().size());
      }
    
      public void testPrimitiveAndWrapper() {
        ImmutableTypeToInstanceMap<Number> map =
            ImmutableTypeToInstanceMap.<Number>builder()
                .put(Integer.class, 0)
                .put(int.class, 1)
                .build();
        assertEquals(2, map.size());
    
        assertEquals(0, (int) map.getInstance(Integer.class));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 6.9K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/CompactHashSet.java

      /**
       * Keeps track of metadata like the number of hash table bits and modifications of this data
       * structure (to make it possible to throw ConcurrentModificationException in the iterator). Note
       * that we choose not to make this volatile, so we do less of a "best effort" to track such
       * errors, for better performance.
       */
      private transient int metadata;
    
      /** The number of elements contained in the set. */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 23.9K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/core/convert/LongConversionUtil.java

         * @return the converted {@link Long}
         */
        public static Long toLong(final Object o, final String pattern) {
            return switch (o) {
            case null -> null;
            case Long l -> l;
            case Number n -> n.longValue();
            case String s -> toLong(s);
            case java.util.Date d -> pattern != null ? Long.valueOf(new SimpleDateFormat(pattern).format(d)) : d.getTime();
            case Boolean b -> b ? 1L : 0L;
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/primitives/UnsignedLongs.java

            maxSafeDigits[i] = overflow.toString(i).length() - 1;
          }
        }
    
        /**
         * Returns true if (current * radix) + digit is a number too large to be represented by an
         * unsigned long. This is useful for detecting overflow while parsing a string representation of
         * a number. Does not verify whether supplied radix is valid, passing an invalid radix will give
         * undefined results or an ArrayIndexOutOfBoundsException.
         */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jan 05 22:13:21 GMT 2026
    - 17.8K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java

            /**
             *
             */
            public void getIii() {
            }
    
            /**
             * @param arg1
             * @param arg2
             * @return Number
             */
            public Number add(final Number arg1, final Number arg2) {
                return Integer.valueOf(3);
            }
    
            /**
             * @param arg1
             * @param arg2
             * @return int
             */
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Fri Jun 20 13:40:57 GMT 2025
    - 13.9K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/hash/HashCode.java

       * hexadecimal number in lower case.
       *
       * <p>Note that if the output is considered to be a single hexadecimal number, whether this string
       * is big-endian or little-endian depends on the byte order of {@link #asBytes}. This may be
       * surprising for implementations of {@code HashCode} that represent the number in big-endian
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/io/CountingInputStream.java

    import java.io.InputStream;
    
    /**
     * An {@link InputStream} that counts the number of bytes read.
     *
     * @author Chris Nokleberg
     * @since 1.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    public final class CountingInputStream extends FilterInputStream {
    
      private long count;
      private long mark = -1;
    
      /**
       * Wraps another input stream, counting the number of bytes read.
       *
       * @param in the input stream to be wrapped
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 2.3K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/cache/CacheStats.java

        this.loadSuccessCount = loadSuccessCount;
        this.loadExceptionCount = loadExceptionCount;
        this.totalLoadTime = totalLoadTime;
        this.evictionCount = evictionCount;
      }
    
      /**
       * Returns the number of times {@link Cache} lookup methods have returned either a cached or
       * uncached value. This is defined as {@code hitCount + missCount}.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  9. guava/src/com/google/common/cache/CacheStats.java

        this.loadSuccessCount = loadSuccessCount;
        this.loadExceptionCount = loadExceptionCount;
        this.totalLoadTime = totalLoadTime;
        this.evictionCount = evictionCount;
      }
    
      /**
       * Returns the number of times {@link Cache} lookup methods have returned either a cached or
       * uncached value. This is defined as {@code hitCount + missCount}.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/HashMultiset.java

        return new HashMultiset<>();
      }
    
      /**
       * Creates a new, empty {@code HashMultiset} with the specified expected number of distinct
       * elements.
       *
       * @param distinctElements the expected number of distinct elements
       * @throws IllegalArgumentException if {@code distinctElements} is negative
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 05 23:15:58 GMT 2025
    - 3.2K bytes
    - Click Count (0)
Back to Top