Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 41 for parseLong (0.06 seconds)

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

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static java.lang.Long.parseLong;
    
    import java.util.Random;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Utility class for being able to seed a {@link Random} value with a passed in seed from a
     * benchmark parameter.
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 1.5K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/cache/CacheBuilderSpec.java

        abstract void parseLong(CacheBuilderSpec spec, long value);
    
        @Override
        public void parse(CacheBuilderSpec spec, String key, @Nullable String value) {
          if (isNullOrEmpty(value)) {
            throw new IllegalArgumentException("value of key " + key + " omitted");
          }
          try {
            parseLong(spec, Long.parseLong(value));
          } catch (NumberFormatException e) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 18.2K bytes
    - Click Count (0)
  3. guava/src/com/google/common/cache/CacheBuilderSpec.java

        abstract void parseLong(CacheBuilderSpec spec, long value);
    
        @Override
        public void parse(CacheBuilderSpec spec, String key, @Nullable String value) {
          if (isNullOrEmpty(value)) {
            throw new IllegalArgumentException("value of key " + key + " omitted");
          }
          try {
            parseLong(spec, Long.parseLong(value));
          } catch (NumberFormatException e) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 18.2K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/primitives/UnsignedLongs.java

       *
       * @throws NumberFormatException if the string does not contain a valid unsigned {@code long}
       *     value
       * @throws NullPointerException if {@code string} is null (in contrast to {@link
       *     Long#parseLong(String)})
       */
      @CanIgnoreReturnValue
      public static long parseUnsignedLong(String string) {
        return parseUnsignedLong(string, 10);
      }
    
      /**
    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/main/java/org/codelibs/fess/suggest/settings/SuggestSettings.java

         * @return The setting value as a long.
         */
        public long getAsLong(final String key, final long defaultValue) {
            return getAs(key, defaultValue, Long::parseLong);
        }
    
        /**
         * Retrieves a setting value as a float.
         * @param key The key of the setting.
         * @param defaultValue The default value if the setting is not found.
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 18.7K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/primitives/UnsignedInts.java

    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.base.Preconditions.checkPositionIndexes;
    import static java.lang.Long.parseLong;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.util.Arrays;
    import java.util.Comparator;
    
    /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 13.9K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/primitives/Longs.java

      }
    
      /**
       * Parses the specified string as a signed decimal long value. The ASCII character {@code '-'} (
       * <code>'&#92;u002D'</code>) is recognized as the minus sign.
       *
       * <p>Unlike {@link Long#parseLong(String)}, this method returns {@code null} instead of throwing
       * an exception if parsing fails. Additionally, this method only accepts ASCII digits, and returns
       * {@code null} if non-ASCII digits are present in the string.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Oct 22 18:14:49 GMT 2025
    - 29K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/core/convert/LongConversionUtil.java

            case java.util.Date d -> pattern != null ? Long.parseLong(new SimpleDateFormat(pattern).format(d)) : d.getTime();
            case Boolean b -> b ? 1L : 0L;
            default -> toPrimitiveLong(o.toString());
            };
        }
    
        private static long toPrimitiveLong(final String s) {
            if (StringUtil.isEmpty(s)) {
                return 0;
            }
            return Long.parseLong(DecimalFormatUtil.normalize(s));
        }
    
    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)
  9. src/main/java/jcifs/config/PropertyConfiguration.java

                    this.witnessHeartbeatTimeout = Long.parseLong(value);
                } catch (NumberFormatException e) {
                    // Invalid value ignored
                }
            }
    
            value = props.getProperty("jcifs.smb.client.witnessRegistrationTimeout");
            if (value != null) {
                try {
                    this.witnessRegistrationTimeout = Long.parseLong(value);
                } catch (NumberFormatException e) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:49:49 GMT 2025
    - 13.3K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/suggest/entity/SuggestItemSerializer.java

            }
            final List<String> fields = SuggestUtil.getAsList(source.get(FieldNames.FIELDS));
            final long docFreq = Long.parseLong(source.get(FieldNames.DOC_FREQ).toString());
            final long queryFreq = Long.parseLong(source.get(FieldNames.QUERY_FREQ).toString());
            final float userBoost = Float.parseFloat(source.get(FieldNames.USER_BOOST).toString());
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 13.5K bytes
    - Click Count (0)
Back to Top