Package com.axelor.auth
Record Class UserAgentParser.UserAgentInfo
java.lang.Object
java.lang.Record
com.axelor.auth.UserAgentParser.UserAgentInfo
- Record Components:
browser- browser family name (e.g."Chrome")os- operating system family name (e.g."Linux")device- device family name (e.g."Desktop")
- Enclosing class:
UserAgentParser
public static record UserAgentParser.UserAgentInfo(String browser, String os, String device)
extends Record
Structured representation of a parsed User-Agent string.
-
Constructor Summary
ConstructorsConstructorDescriptionUserAgentInfo(String browser, String os, String device) Creates an instance of aUserAgentInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionbrowser()Returns the value of thebrowserrecord component.device()Returns the value of thedevicerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.os()Returns the value of theosrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
browser
Returns the value of thebrowserrecord component.- Returns:
- the value of the
browserrecord component
-
os
Returns the value of theosrecord component.- Returns:
- the value of the
osrecord component
-
device
Returns the value of thedevicerecord component.- Returns:
- the value of the
devicerecord component
-