Class KeyGenerator

java.lang.Object
io.gitbub.devlibx.easy.helper.calendar.KeyGenerator

public class KeyGenerator extends Object
  • Constructor Details

    • KeyGenerator

      public KeyGenerator()
  • Method Details

    • generateKeyForLastNDaysFrom

      public List<String> generateKeyForLastNDaysFrom(org.joda.time.DateTime from, int days)
      Generate key for last N days. e.g. if you gave a date of from=2022-07-10, days=5; then it will return

      ["7-10", "7-9", "7-8", "7-7", "7-7"]

    • generateKeyForLastNDaysFrom

      public List<String> generateKeyForLastNDaysFrom(org.joda.time.DateTime from, int days, KeyGenerator.IKeyFunc keyFunc)
      Generate key for last N days. e.g. if you gave a date of from=2022-07-10, days=5; then it will return

      ["7-10", "7-9", "7-8", "7-7", "7-7"]