Module org.jetbrains.nativecerts
Package org.jetbrains.nativecerts.mac
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 -
Method Summary
Modifier and TypeMethodDescription@NotNull Longcode()Returns the value of thecoderecord component.@NotNull StringReturns the value of thedescriptionrecord component.@NotNull Stringdomain()Returns the value of thedomainrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Error
public Error(@NotNull @NotNull String domain, @NotNull @NotNull Long code, @NotNull @NotNull String description) Creates an instance of aErrorrecord class.- Parameters:
domain- the value for thedomainrecord componentcode- the value for thecoderecord componentdescription- the value for thedescriptionrecord component
-
-
Method Details
-
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. -
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. -
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). -
domain
Returns the value of thedomainrecord component.- Returns:
- the value of the
domainrecord component
-
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-