Record Class ProtoObjectName

java.lang.Object
java.lang.Record
io.activej.jmx.ProtoObjectName

public record ProtoObjectName(@Nullable String className, String packageName, @Nullable Object qualifier, @Nullable String scope, @Nullable String workerPoolQualifier, @Nullable String workerId, @Nullable List<String> genericParameters) extends Record
  • Constructor Details

    • ProtoObjectName

      public ProtoObjectName(@Nullable @Nullable String className, String packageName, @Nullable @Nullable Object qualifier, @Nullable @Nullable String scope, @Nullable @Nullable String workerPoolQualifier, @Nullable @Nullable String workerId, @Nullable @Nullable List<String> genericParameters)
      Creates an instance of a ProtoObjectName record class.
      Parameters:
      className - the value for the className record component
      packageName - the value for the packageName record component
      qualifier - the value for the qualifier record component
      scope - the value for the scope record component
      workerPoolQualifier - the value for the workerPoolQualifier record component
      workerId - the value for the workerId record component
      genericParameters - the value for the genericParameters record component
  • Method Details

    • create

      public static ProtoObjectName create(@Nullable @Nullable String className, String packageName)
    • withClassName

      public ProtoObjectName withClassName(@Nullable @Nullable String className)
    • withPackageName

      public ProtoObjectName withPackageName(String packageName)
    • withQualifier

      public ProtoObjectName withQualifier(@Nullable @Nullable Object qualifier)
    • withScope

      public ProtoObjectName withScope(@Nullable @Nullable String scope)
    • withWorkerPoolQualifier

      public ProtoObjectName withWorkerPoolQualifier(@Nullable @Nullable String workerPoolQualifier)
    • withWorkerId

      public ProtoObjectName withWorkerId(@Nullable @Nullable String workerId)
    • withGenericParameters

      public ProtoObjectName withGenericParameters(@Nullable @Nullable List<String> genericParameters)
    • toString

      public 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • className

      @Nullable public @Nullable String className()
      Returns the value of the className record component.
      Returns:
      the value of the className record component
    • packageName

      public String packageName()
      Returns the value of the packageName record component.
      Returns:
      the value of the packageName record component
    • qualifier

      @Nullable public @Nullable Object qualifier()
      Returns the value of the qualifier record component.
      Returns:
      the value of the qualifier record component
    • scope

      @Nullable public @Nullable String scope()
      Returns the value of the scope record component.
      Returns:
      the value of the scope record component
    • workerPoolQualifier

      @Nullable public @Nullable String workerPoolQualifier()
      Returns the value of the workerPoolQualifier record component.
      Returns:
      the value of the workerPoolQualifier record component
    • workerId

      @Nullable public @Nullable String workerId()
      Returns the value of the workerId record component.
      Returns:
      the value of the workerId record component
    • genericParameters

      @Nullable public @Nullable List<String> genericParameters()
      Returns the value of the genericParameters record component.
      Returns:
      the value of the genericParameters record component