Class LastLoginInfo


  • public class LastLoginInfo
    extends java.lang.Object
    Author:
    freva
    • Constructor Detail

      • LastLoginInfo

        public LastLoginInfo​(java.util.Map<LastLoginInfo.UserLevel,​java.time.Instant> lastLoginByUserLevel)
    • Method Detail

      • withLastLoginIfLater

        public LastLoginInfo withLastLoginIfLater​(LastLoginInfo.UserLevel userLevel,
                                                  java.time.Instant loginAt)
        Returns new instance with updated last login time if the given loginAt timestamp is after the current for the given userLevel, otherwise returns this
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object