Class F_PlainDate_Is

java.lang.Object
com.ssgllc.fish.f.plaindate.F_PlainDate_Is

public class F_PlainDate_Is extends Object
Date comparisons, reached as is on an F_PlainDate.

Each of after, before and equal takes the other date in any of the forms PlainDateBuilder accepts. not() inverts the result, so is.not().before(x) reads as "is on or after x".

  • Constructor Summary

    Constructors
    Constructor
    Description
     
    F_PlainDate_Is(LocalDate date, boolean negate)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    after(int year, int month, int day)
    Whether this date is strictly later than a date given as year, month and day integers.
    boolean
    after(String date)
    Whether this date is strictly later than a date given as an ISO-8601 string.
    boolean
    after(String year, String month, String day)
    Whether this date is strictly later than a date given as year, month and day strings.
    boolean
    Whether this date is strictly later than a LocalDate.
    boolean
    Whether this date is strictly later than a date given as a map of year, month and day.
    boolean
    before(int year, int month, int day)
    Whether this date is strictly earlier than a date given as year, month and day integers.
    boolean
    before(String date)
    Whether this date is strictly earlier than a date given as an ISO-8601 string.
    boolean
    before(String year, String month, String day)
    Whether this date is strictly earlier than a date given as year, month and day strings.
    boolean
    Whether this date is strictly earlier than a LocalDate.
    boolean
    Whether this date is strictly earlier than a date given as a map of year, month and day.
    boolean
    equal(int year, int month, int day)
    Whether this date is the same day as a date given as year, month and day integers.
    boolean
    equal(String date)
    Whether this date is the same day as a date given as an ISO-8601 string.
    boolean
    equal(String year, String month, String day)
    Whether this date is the same day as a date given as year, month and day strings.
    boolean
    Whether this date is the same day as a LocalDate.
    boolean
    Whether this date is the same day as a date given as a map of year, month and day.
    not()
    Inverts the comparison that follows, so is.not().after(x) reads as "is not after x".

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • F_PlainDate_Is

      public F_PlainDate_Is(LocalDate date, boolean negate)
    • F_PlainDate_Is

      public F_PlainDate_Is(LocalDate date)
  • Method Details

    • not

      public F_PlainDate_Is not()
      Inverts the comparison that follows, so is.not().after(x) reads as "is not after x".
      Returns:
      a comparison view with the result negated

      Groovy example:
      f().date.today().is.not().after("2026-12-31")

      Returns:
      true

      SpEL example:
      #f().date.today().is.not().after("2026-12-31")
    • after

      public boolean after(String date)
      Whether this date is strictly later than a date given as an ISO-8601 string.
      Returns:
      true if it is, or the opposite after not()

      Groovy example:
      f().date.today().is.after("2026-01-01")

      Returns:
      true

      SpEL example:
      #f().date.today().is.after("2026-01-01")
    • after

      public boolean after(LocalDate date)
      Whether this date is strictly later than a LocalDate.
      Returns:
      true if it is, or the opposite after not()

      Groovy example:
      f().date.today().is.after(entity.dueDate)

      Returns:
      true when today is strictly later than the due date

      SpEL example:
      #f().date.today().is.after(entity.dueDate)
    • after

      public boolean after(Map<String,Object> obj)
      Whether this date is strictly later than a date given as a map of year, month and day.
      Returns:
      true if it is, or the opposite after not()

      Groovy example:
      f().date.today().is.after(['year': 2026, 'month': 1, 'day': 1])

      Returns:
      true

      SpEL example:
      #f().date.today().is.after({'year': 2026, 'month': 1, 'day': 1})
    • after

      public boolean after(String year, String month, String day)
      Whether this date is strictly later than a date given as year, month and day strings.
      Returns:
      true if it is, or the opposite after not()

      Groovy example:
      f().date.today().is.after("2026", "1", "1")

      Returns:
      true

      SpEL example:
      #f().date.today().is.after("2026", "1", "1")
    • after

      public boolean after(int year, int month, int day)
      Whether this date is strictly later than a date given as year, month and day integers.
      Returns:
      true if it is, or the opposite after not()

      Groovy example:
      f().date.today().is.after(2026, 1, 1)

      Returns:
      true

      SpEL example:
      #f().date.today().is.after(2026, 1, 1)
    • before

      public boolean before(String date)
      Whether this date is strictly earlier than a date given as an ISO-8601 string.
      Returns:
      true if it is, or the opposite after not()

      Groovy example:
      f().date.today().is.before("2026-01-01")

      Returns:
      true

      SpEL example:
      #f().date.today().is.before("2026-01-01")
    • before

      public boolean before(LocalDate date)
      Whether this date is strictly earlier than a LocalDate.
      Returns:
      true if it is, or the opposite after not()

      Groovy example:
      f().date.today().is.before(entity.dueDate)

      Returns:
      true when today is strictly earlier than the due date

      SpEL example:
      #f().date.today().is.before(entity.dueDate)
    • before

      public boolean before(Map<String,Object> obj)
      Whether this date is strictly earlier than a date given as a map of year, month and day.
      Returns:
      true if it is, or the opposite after not()

      Groovy example:
      f().date.today().is.before(['year': 2026, 'month': 1, 'day': 1])

      Returns:
      true

      SpEL example:
      #f().date.today().is.before({'year': 2026, 'month': 1, 'day': 1})
    • before

      public boolean before(String year, String month, String day)
      Whether this date is strictly earlier than a date given as year, month and day strings.
      Returns:
      true if it is, or the opposite after not()

      Groovy example:
      f().date.today().is.before("2026", "1", "1")

      Returns:
      true

      SpEL example:
      #f().date.today().is.before("2026", "1", "1")
    • before

      public boolean before(int year, int month, int day)
      Whether this date is strictly earlier than a date given as year, month and day integers.
      Returns:
      true if it is, or the opposite after not()

      Groovy example:
      f().date.today().is.before(2026, 1, 1)

      Returns:
      true

      SpEL example:
      #f().date.today().is.before(2026, 1, 1)
    • equal

      public boolean equal(String date)
      Whether this date is the same day as a date given as an ISO-8601 string.
      Returns:
      true if it is, or the opposite after not()

      Groovy example:
      f().date.today().is.equal("2026-01-01")

      Returns:
      true

      SpEL example:
      #f().date.today().is.equal("2026-01-01")
    • equal

      public boolean equal(LocalDate date)
      Whether this date is the same day as a LocalDate.
      Returns:
      true if it is, or the opposite after not()

      Groovy example:
      f().date.today().is.equal(entity.dueDate)

      Returns:
      true when today is the same day as the due date

      SpEL example:
      #f().date.today().is.equal(entity.dueDate)
    • equal

      public boolean equal(Map<String,Object> obj)
      Whether this date is the same day as a date given as a map of year, month and day.
      Returns:
      true if it is, or the opposite after not()

      Groovy example:
      f().date.today().is.equal(['year': 2026, 'month': 1, 'day': 1])

      Returns:
      true

      SpEL example:
      #f().date.today().is.equal({'year': 2026, 'month': 1, 'day': 1})
    • equal

      public boolean equal(String year, String month, String day)
      Whether this date is the same day as a date given as year, month and day strings.
      Returns:
      true if it is, or the opposite after not()

      Groovy example:
      f().date.today().is.equal("2026", "1", "1")

      Returns:
      true

      SpEL example:
      #f().date.today().is.equal("2026", "1", "1")
    • equal

      public boolean equal(int year, int month, int day)
      Whether this date is the same day as a date given as year, month and day integers.
      Returns:
      true if it is, or the opposite after not()

      Groovy example:
      f().date.today().is.equal(2026, 1, 1)

      Returns:
      true

      SpEL example:
      #f().date.today().is.equal(2026, 1, 1)