Java Duration Calculate isInfPositive(Duration duration)

Here you can find the source of isInfPositive(Duration duration)

Description

is Inf Positive

License

Open Source License

Declaration

public static boolean isInfPositive(Duration duration) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.time.Duration;

import java.time.temporal.ChronoUnit;

public class Main {
    public static final Duration INF_POSITIVE = ChronoUnit.FOREVER.getDuration();

    public static boolean isInfPositive(Duration duration) {
        return INF_POSITIVE.equals(duration);
    }/*from ww w.ja  v  a2 s  . c o  m*/
}

Related

  1. getExpirationMillis(long now, Duration duration)
  2. getOrThrow(final ListenableFuture Future, final Duration timeout)
  3. getTTLSeconds(Duration duration)
  4. isDuration(String value)
  5. isFinite(Duration duration)
  6. max(Duration a, Duration b)
  7. min(Duration a, Duration b)
  8. minutesToDuration(long minutes)
  9. multiply(Duration duration, double factor)