Class LastLoginInfo
- java.lang.Object
-
- com.yahoo.vespa.hosted.controller.tenant.LastLoginInfo
-
public class LastLoginInfo extends 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(Map<LastLoginInfo.UserLevel,Instant> lastLoginByUserLevel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Optional<Instant>get(LastLoginInfo.UserLevel userLevel)inthashCode()LastLoginInfowithLastLoginIfLater(LastLoginInfo.UserLevel userLevel, 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(Map<LastLoginInfo.UserLevel,Instant> lastLoginByUserLevel)
-
-
Method Detail
-
get
public Optional<Instant> get(LastLoginInfo.UserLevel userLevel)
-
withLastLoginIfLater
public LastLoginInfo withLastLoginIfLater(LastLoginInfo.UserLevel userLevel, Instant loginAt)
Returns new instance with updated last login time if the givenloginAttimestamp is after the current for the givenuserLevel, otherwise returns this
-
-