Class LastLoginInfo
- java.lang.Object
-
- com.yahoo.vespa.hosted.controller.tenant.LastLoginInfo
-
public class LastLoginInfo extends java.lang.Object- Author:
- freva
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLastLoginInfo.UserLevel
-
Field Summary
Fields Modifier and Type Field Description static LastLoginInfoEMPTY
-
Constructor Summary
Constructors Constructor Description LastLoginInfo(java.util.Map<LastLoginInfo.UserLevel,java.time.Instant> lastLoginByUserLevel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.Optional<java.time.Instant>get(LastLoginInfo.UserLevel userLevel)inthashCode()LastLoginInfowithLastLoginIfLater(LastLoginInfo.UserLevel userLevel, java.time.Instant loginAt)Returns new instance with updated last login time if the givenloginAttimestamp is after the current for the givenuserLevel, otherwise returns this
-
-
-
Field Detail
-
EMPTY
public static final LastLoginInfo EMPTY
-
-
Constructor Detail
-
LastLoginInfo
public LastLoginInfo(java.util.Map<LastLoginInfo.UserLevel,java.time.Instant> lastLoginByUserLevel)
-
-
Method Detail
-
get
public java.util.Optional<java.time.Instant> get(LastLoginInfo.UserLevel userLevel)
-
withLastLoginIfLater
public LastLoginInfo withLastLoginIfLater(LastLoginInfo.UserLevel userLevel, java.time.Instant loginAt)
Returns new instance with updated last login time if the givenloginAttimestamp is after the current for the givenuserLevel, otherwise returns this
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-