Record Class ProblemDetails
java.lang.Object
java.lang.Record
dev.rafex.ether.http.problem.model.ProblemDetails
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProblemDetails.Builderbuilder()detail()Returns the value of thedetailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.instance()Returns the value of theinstancerecord component.static ProblemDetailsReturns the value of thepropertiesrecord component.intstatus()Returns the value of thestatusrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ProblemDetails
public ProblemDetails(URI type, String title, int status, String detail, URI instance, Map<String, Object> properties) Creates an instance of aProblemDetailsrecord class.- Parameters:
type- the value for thetyperecord componenttitle- the value for thetitlerecord componentstatus- the value for thestatusrecord componentdetail- the value for thedetailrecord componentinstance- the value for theinstancerecord componentproperties- the value for thepropertiesrecord component
-
-
Method Details
-
builder
-
of
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
status
public int status()Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
detail
Returns the value of thedetailrecord component.- Returns:
- the value of the
detailrecord component
-
instance
Returns the value of theinstancerecord component.- Returns:
- the value of the
instancerecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-