Record Class WebEngineClassifier.Client
java.lang.Object
java.lang.Record
com.iizix.server.webengine.WebEngineClassifier.Client
- Record Components:
userAgent-navigator.userAgent, may be null.cordova-izr.cordova, non-null only in iiziRun (asEnvProps.isCordova).osVersion-izr.osversion, the device's OS version in iiziRun, may be null.platform-izr.platform, e.g. "Android" or "iOS", may be null.
- Enclosing class:
WebEngineClassifier
Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionstatic WebEngineClassifier.ClientCreates a Browser client: a user agent and nothing else.cordova()Returns the value of thecordovarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanTests if the client is iiziRun.Returns the value of theosVersionrecord component.platform()Returns the value of theplatformrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserAgentrecord component.
Constructor Details
Method Details
browser
Creates a Browser client: a user agent and nothing else.- Parameters:
userAgent- The user agent.- Returns:
- The client.
isIiziRun
public boolean isIiziRun()Tests if the client is iiziRun.- Returns:
- true if
izr.cordovais present.
toString
hashCode
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).userAgent
cordova
osVersion
platform