Codota Logo
DefaultDuration.getUnit
Code IndexAdd Codota to your IDE (free)

How to use
getUnit
method
in
com.ning.billing.overdue.config.DefaultDuration

Best Java code snippets using com.ning.billing.overdue.config.DefaultDuration.getUnit (Showing top 2 results out of 315)

origin: com.ning.billing/killbill-overdue

@Override
public Period getInitialReevaluationInterval() {
  if (initialReevaluationInterval == null || initialReevaluationInterval.getUnit() == TimeUnit.UNLIMITED || initialReevaluationInterval.getNumber() == 0) {
    return null;
  }
  return initialReevaluationInterval.toJodaPeriod();
}
origin: com.ning.billing/killbill-overdue

@Override
public Period getReevaluationInterval() throws OverdueApiException {
  if (autoReevaluationInterval == null || autoReevaluationInterval.getUnit() == TimeUnit.UNLIMITED || autoReevaluationInterval.getNumber() == 0) {
    throw new OverdueApiException(ErrorCode.OVERDUE_NO_REEVALUATION_INTERVAL, name);
  }
  return autoReevaluationInterval.toJodaPeriod();
}
com.ning.billing.overdue.configDefaultDurationgetUnit

Popular methods of DefaultDuration

  • <init>
  • getNumber
  • setNumber
  • setUnit
  • toJodaPeriod

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setRequestProperty (URLConnection)
  • getContentResolver (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Menu (java.awt)
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • JComboBox (javax.swing)
  • JFrame (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now