Package sk.iway.iwcm.admin.layout
Record Class UserMenuRestController.LoginNotice
java.lang.Object
java.lang.Record
sk.iway.iwcm.admin.layout.UserMenuRestController.LoginNotice
- Enclosing class:
- UserMenuRestController
public static record UserMenuRestController.LoginNotice(String browserName, String browserVersion, String operatingSystem, String location, long lastSeen)
extends Record
Latest successful login details, excluding recognition and verification secrets.
-
Constructor Summary
ConstructorsConstructorDescriptionLoginNotice(String browserName, String browserVersion, String operatingSystem, String location, long lastSeen) Creates an instance of aLoginNoticerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebrowserNamerecord component.Returns the value of thebrowserVersionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longlastSeen()Returns the value of thelastSeenrecord component.location()Returns the value of thelocationrecord component.Returns the value of theoperatingSystemrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LoginNotice
public LoginNotice(String browserName, String browserVersion, String operatingSystem, String location, long lastSeen) Creates an instance of aLoginNoticerecord class.- Parameters:
browserName- the value for thebrowserNamerecord componentbrowserVersion- the value for thebrowserVersionrecord componentoperatingSystem- the value for theoperatingSystemrecord componentlocation- the value for thelocationrecord componentlastSeen- the value for thelastSeenrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
browserName
Returns the value of thebrowserNamerecord component.- Returns:
- the value of the
browserNamerecord component
-
browserVersion
Returns the value of thebrowserVersionrecord component.- Returns:
- the value of the
browserVersionrecord component
-
operatingSystem
Returns the value of theoperatingSystemrecord component.- Returns:
- the value of the
operatingSystemrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
lastSeen
public long lastSeen()Returns the value of thelastSeenrecord component.- Returns:
- the value of the
lastSeenrecord component
-