Tabnine Logo
OrgDelay.getValue
Code IndexAdd Tabnine to your IDE (free)

How to use
getValue
method
in
com.orgzly.org.datetime.OrgDelay

Best Java code snippets using com.orgzly.org.datetime.OrgDelay.getValue (Showing top 3 results out of 315)

origin: orgzly/org-java

@Test
public void testDelayOnlyWithTime() {
  OrgDateTime time = OrgDateTime.parse("<2009-10-17 13:15 -2d>");
  Assert.assertFalse(time.hasRepeater());
  Assert.assertTrue(time.hasDelay());
  Assert.assertEquals(OrgDelay.Type.ALL, time.getDelay().getType());
  Assert.assertEquals(2, time.getDelay().getValue());
  Assert.assertEquals(OrgDelay.Unit.DAY, time.getDelay().getUnit());
}
origin: orgzly/org-java

@Test
public void testDelayOnlyWithWeekday() {
  OrgDateTime time = OrgDateTime.parse("<2009-10-17 Wed -2d>");
  Assert.assertFalse(time.hasRepeater());
  Assert.assertTrue(time.hasDelay());
  Assert.assertEquals(OrgDelay.Type.ALL, time.getDelay().getType());
  Assert.assertEquals(2, time.getDelay().getValue());
  Assert.assertEquals(OrgDelay.Unit.DAY, time.getDelay().getUnit());
}
origin: orgzly/org-java

@Test
public void testDelayFirstOccurrence() {
  OrgDateTime time = OrgDateTime.parse("<2009-10-17 13:15 +1m --2d>");
  Assert.assertTrue(time.hasRepeater());
  Assert.assertTrue(time.hasDelay());
  Assert.assertEquals(OrgDelay.Type.FIRST_ONLY, time.getDelay().getType());
  Assert.assertEquals(2, time.getDelay().getValue());
  Assert.assertEquals(OrgDelay.Unit.DAY, time.getDelay().getUnit());
}
com.orgzly.org.datetimeOrgDelaygetValue

Popular methods of OrgDelay

  • <init>
  • getType
  • getUnit
  • parse
  • setTypeFromString
  • setUnit
  • setValue

Popular in Java

  • Creating JSON documents from java classes using gson
  • setScale (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now