Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for parseLong (0.1 sec)

  1. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java

            // for performance, check digits instead of relying later on catching NumberFormatException
            if (!isDigits(s)) {
                return null;
            }
    
            try {
                long longValue = Long.parseLong(s);
                if (longValue > Integer.MAX_VALUE) {
                    return null;
                }
                return (int) longValue;
            } catch (NumberFormatException e) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. compat/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java

                msg += " (";
                msg += (rev != null ? rev : "");
                if (timestamp != null && !timestamp.isEmpty()) {
                    String ts = formatTimestamp(Long.parseLong(timestamp));
                    msg += (rev != null ? "; " : "") + ts;
                }
                msg += ")";
            }
            return msg;
        }
    
        private static String reduce(String s) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java

            if (props != null) {
                String rawVal = props.getProperty(key);
                if (rawVal != null) {
                    try {
                        return new Date(Long.parseLong(rawVal));
                    } catch (NumberFormatException e) {
                        getLogger().debug("Cannot parse lastUpdated date: '" + rawVal + "'. Ignoring.", e);
                    }
                }
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  4. 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.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/UnsignedInts.java

       *     Integer#parseInt(String)})
       */
      @CanIgnoreReturnValue
      public static int parseUnsignedInt(String string, int radix) {
        checkNotNull(string);
        long result = Long.parseLong(string, radix);
        if ((result & INT_MASK) != result) {
          throw new NumberFormatException(
              "Input " + string + " in base " + radix + " is not in the range of an unsigned integer");
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 21:17:54 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/primitives/UnsignedInts.java

       *     Integer#parseInt(String)})
       */
      @CanIgnoreReturnValue
      public static int parseUnsignedInt(String string, int radix) {
        checkNotNull(string);
        long result = Long.parseLong(string, radix);
        if ((result & INT_MASK) != result) {
          throw new NumberFormatException(
              "Input " + string + " in base " + radix + " is not in the range of an unsigned integer");
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 21:17:54 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  7. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java

         */
        private static class LongItem implements Item {
            private final long value;
    
            LongItem(String str) {
                this.value = Long.parseLong(str);
            }
    
            @Override
            public int getType() {
                return LONG_ITEM;
            }
    
            @Override
            public boolean isNull() {
                return value == 0;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 26K bytes
    - Viewed (0)
  8. src/main/webapp/js/admin/moment-with-locales.min.js

    Date},M.utc=c,M.unix=function(e){return Ha(1e3*e)},M.months=function(e,a){return Dt(e,a,"months")},M.isDate=d,M.locale=oa,M.invalid=y,M.duration=Ga,M.isMoment=D,M.weekdays=function(e,a,t){return Tt(e,a,t,"weekdays")},M.parseZone=function(){return Ha.apply(null,arguments).parseZone()},M.localeData=ua,M.isDuration=Aa,M.monthsShort=function(e,a){return Dt(e,a,"monthsShort")},M.weekdaysMin=function(e,a,t){return Tt(e,a,t,"weekdaysMin")},M.defineLocale=ma,M.updateLocale=function(e,a){var t,s,n;return...
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 26 01:49:09 UTC 2024
    - 360.5K bytes
    - Viewed (1)
  9. src/main/webapp/js/admin/moment-with-locales.min.js.map

    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 26 01:49:09 UTC 2024
    - 224.8K bytes
    - Viewed (0)
Back to top