public class UserAgent
extends java.lang.Object
Constructor and Description |
---|
UserAgent(java.lang.String browserName,
java.lang.String browserVersion,
java.lang.String userAgentString,
BrowserType type,
java.time.LocalDate dateAdded)
Creates the user agent
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getBrowserName()
Returns the BrowserName for the object
|
java.lang.String |
getBrowserVersion()
Returns the BrowserVersion for the object
|
java.time.LocalDate |
getDateAdded()
Returns the DateAdded for the object
|
BrowserType |
getType()
Returns the Type for the object
|
java.lang.String |
getUserAgentString()
Returns the UserAgentString for the object
|
int |
hashCode() |
java.lang.String |
toString() |
public UserAgent(@Nullable java.lang.String browserName, @Nullable java.lang.String browserVersion, @NotNull java.lang.String userAgentString, @Nullable BrowserType type, @NotNull java.time.LocalDate dateAdded)
browserName
- The name of the browserbrowserVersion
- The version of the browseruserAgentString
- The user agent string submitted by the browsertype
- The type of browserdateAdded
- The best guess as to when this user agent became available as one used in the world@NotNull public java.lang.String getBrowserName()
@NotNull public java.lang.String getBrowserVersion()
@NotNull public java.lang.String getUserAgentString()
@NotNull public BrowserType getType()
@NotNull public java.time.LocalDate getDateAdded()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
@NotNull public java.lang.String toString()
toString
in class java.lang.Object