Package com.ssgllc.fish.f.plaindate
Class F_PlainDate_Is
java.lang.Object
com.ssgllc.fish.f.plaindate.F_PlainDate_Is
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
ConstructorsConstructorDescriptionF_PlainDate_Is(LocalDate date) F_PlainDate_Is(LocalDate date, boolean negate) -
Method Summary
Modifier and TypeMethodDescriptionbooleanafter(int year, int month, int day) Whether this date is strictly later than a date given as year, month and day integers.booleanWhether this date is strictly later than a date given as an ISO-8601 string.booleanWhether this date is strictly later than a date given as year, month and day strings.booleanWhether this date is strictly later than aLocalDate.booleanWhether this date is strictly later than a date given as a map ofyear,monthandday.booleanbefore(int year, int month, int day) Whether this date is strictly earlier than a date given as year, month and day integers.booleanWhether this date is strictly earlier than a date given as an ISO-8601 string.booleanWhether this date is strictly earlier than a date given as year, month and day strings.booleanWhether this date is strictly earlier than aLocalDate.booleanWhether this date is strictly earlier than a date given as a map ofyear,monthandday.booleanequal(int year, int month, int day) Whether this date is the same day as a date given as year, month and day integers.booleanWhether this date is the same day as a date given as an ISO-8601 string.booleanWhether this date is the same day as a date given as year, month and day strings.booleanWhether this date is the same day as aLocalDate.booleanWhether this date is the same day as a date given as a map ofyear,monthandday.not()Inverts the comparison that follows, sois.not().after(x)reads as "is not after x".
-
Constructor Details
-
F_PlainDate_Is
-
F_PlainDate_Is
-
-
Method Details
-
not
Inverts the comparison that follows, sois.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
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
Whether this date is strictly later than aLocalDate.- 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
Whether this date is strictly later than a date given as a map ofyear,monthandday.- 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
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
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
Whether this date is strictly earlier than aLocalDate.- 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
Whether this date is strictly earlier than a date given as a map ofyear,monthandday.- 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
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
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
Whether this date is the same day as aLocalDate.- 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
Whether this date is the same day as a date given as a map ofyear,monthandday.- 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
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)
-