Record Class CoreFoundationExt.Error

java.lang.Object
java.lang.Record
org.jetbrains.nativecerts.mac.CoreFoundationExt.Error
Enclosing interface:
CoreFoundationExt

public static record CoreFoundationExt.Error(@NotNull String domain, @NotNull Long code, @NotNull String description) extends Record
Unwrapped version of CFErrorRef without native references
  • Constructor Summary

    Constructors
    Constructor
    Description
    Error(@NotNull String domain, @NotNull Long code, @NotNull String description)
    Creates an instance of a Error record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Long
    Returns the value of the code record component.
    @NotNull String
    Returns the value of the description record component.
    @NotNull String
    Returns the value of the domain record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    @NotNull String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Error

      public Error(@NotNull @NotNull String domain, @NotNull @NotNull Long code, @NotNull @NotNull String description)
      Creates an instance of a Error record class.
      Parameters:
      domain - the value for the domain record component
      code - the value for the code record component
      description - the value for the description record component
  • Method Details

    • toString

      @NotNull public @NotNull 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.
    • domain

      @NotNull public @NotNull String domain()
      Returns the value of the domain record component.
      Returns:
      the value of the domain record component
    • code

      @NotNull public @NotNull Long code()
      Returns the value of the code record component.
      Returns:
      the value of the code record component
    • description

      @NotNull public @NotNull String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component