Record Class WebEngineStats.Group

java.lang.Object
java.lang.Record
com.iizix.server.webengine.WebEngineStats.Group
Record Components:
appID - The application ID, null for the overflow row.
platform - The platform.
product - The engine product, e.g. "Android System WebView", null when not assessed.
osMajor - The OS major version, -1 when not known.
engineMajor - The engine major version, -1 when not known.
status - The status.
Enclosing class:
WebEngineStats

public static record WebEngineStats.Group(String appID, WebEngineStatus.Platform platform, String product, int osMajor, int engineMajor, WebEngineStatus.Status status) extends Record
The key of a group row, and what a session holds while it is counted: handed back to WebEngineStats.move(WebEngineStats.Group, String, WebEngineStatus, Instant) and WebEngineStats.disconnect(WebEngineStats.Group).
Author:
Christopher Mindus
  • Constructor Details

    • Group

      public Group(String appID, WebEngineStatus.Platform platform, String product, int osMajor, int engineMajor, WebEngineStatus.Status status)
      Creates an instance of a Group record class.
      Parameters:
      appID - the value for the appID record component
      platform - the value for the platform record component
      product - the value for the product record component
      osMajor - the value for the osMajor record component
      engineMajor - the value for the engineMajor record component
      status - the value for the status record component
  • Method Details

    • isOverflow

      public boolean isOverflow()
      Tests if this is the overflow row of its status.
      Returns:
      true for the row that counts what WebEngineStats.MAX_ROWS left no row for.
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • appID

      public String appID()
      Returns the value of the appID record component.
      Returns:
      the value of the appID record component
    • platform

      public WebEngineStatus.Platform platform()
      Returns the value of the platform record component.
      Returns:
      the value of the platform record component
    • product

      public String product()
      Returns the value of the product record component.
      Returns:
      the value of the product record component
    • osMajor

      public int osMajor()
      Returns the value of the osMajor record component.
      Returns:
      the value of the osMajor record component
    • engineMajor

      public int engineMajor()
      Returns the value of the engineMajor record component.
      Returns:
      the value of the engineMajor record component
    • status

      public WebEngineStatus.Status status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component