Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for toNanosSaturated (0.3 seconds)

  1. guava/src/com/google/common/base/Internal.java

       */
      // We use this method only for cases in which we need to decompose to primitives.
      @SuppressWarnings({"GoodTime-ApiWithNumericTimeUnit", "GoodTime-DecomposeToPrimitive"})
      @IgnoreJRERequirement
      static long toNanosSaturated(Duration duration) {
        // Using a try/catch seems lazy, but the catch block will rarely get invoked (except for
        // durations longer than approximately +/- 292 years).
        try {
          return duration.toNanos();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Apr 14 15:16:19 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/util/concurrent/Internal.java

       * {@link Long#MAX_VALUE} or {@link Long#MIN_VALUE}. This behavior can be useful when decomposing
       * a duration in order to call a legacy API which requires a {@code long, TimeUnit} pair.
       */
      static long toNanosSaturated(Duration duration) {
        // Using a try/catch seems lazy, but the catch block will rarely get invoked (except for
        // durations longer than approximately +/- 292 years).
        try {
          return duration.toNanos();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Apr 14 16:07:06 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/Internal.java

       * {@link Long#MAX_VALUE} or {@link Long#MIN_VALUE}. This behavior can be useful when decomposing
       * a duration in order to call a legacy API which requires a {@code long, TimeUnit} pair.
       */
      static long toNanosSaturated(Duration duration) {
        // Using a try/catch seems lazy, but the catch block will rarely get invoked (except for
        // durations longer than approximately +/- 292 years).
        try {
          return duration.toNanos();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Nov 04 17:24:58 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/Internal.java

       * {@link Long#MAX_VALUE} or {@link Long#MIN_VALUE}. This behavior can be useful when decomposing
       * a duration in order to call a legacy API which requires a {@code long, TimeUnit} pair.
       */
      static long toNanosSaturated(Duration duration) {
        // Using a try/catch seems lazy, but the catch block will rarely get invoked (except for
        // durations longer than approximately +/- 292 years).
        try {
          return duration.toNanos();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Nov 04 17:24:58 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/base/Internal.java

       */
      // We use this method only for cases in which we need to decompose to primitives.
      @SuppressWarnings({"GoodTime-ApiWithNumericTimeUnit", "GoodTime-DecomposeToPrimitive"})
      @IgnoreJRERequirement
      static long toNanosSaturated(Duration duration) {
        // Using a try/catch seems lazy, but the catch block will rarely get invoked (except for
        // durations longer than approximately +/- 292 years).
        try {
          return duration.toNanos();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Apr 14 15:16:19 GMT 2025
    - 1.9K bytes
    - Click Count (0)
Back to Top