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

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

Best Java code snippets using com.orgzly.org.datetime.OrgDelay.getType (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.datetimeOrgDelaygetType

Popular methods of OrgDelay

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

Popular in Java

  • Reading from database using SQL prepared statement
  • findViewById (Activity)
  • addToBackStack (FragmentTransaction)
  • setScale (BigDecimal)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JLabel (javax.swing)
  • CodeWhisperer alternatives
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