Skip to content

equals() and identical() methods for Period

Compare
Choose a tag to compare
@rogierschouten rogierschouten released this 16 Jan 10:19
· 238 commits to master since this release
  • Add Period#equals() which checks whether two periods have the same net effect.
  • Add Period#identical() which checks whether two periods were constructed in the same way.
  • Add TimeZone#identical() which checks whether two time zones were constructed the same way.
  • Adjust DateTime#identical() to no longer allow equal-but-not-identical time zone.
  • Made last Period constructor argument optional (default: regular local time)