Package com.atlassian.jira.search.field
Record Class JoinFieldValue
java.lang.Object
java.lang.Record
com.atlassian.jira.search.field.JoinFieldValue
A field value that can be added to a document to represent its document type and relationship with other documents.
For parent documents, the name is the parent type. For child documents, the name is the child type and the parent is
the parent document ID
- Since:
- 10.4
-
Constructor Summary
ConstructorsConstructorDescriptionJoinFieldValue
(String name) JoinFieldValue
(String name, String parent) Creates an instance of aJoinFieldValue
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.parent()
Returns the value of theparent
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
JoinFieldValue
-
JoinFieldValue
Creates an instance of aJoinFieldValue
record class.- Parameters:
name
- the value for thename
record componentparent
- the value for theparent
record 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)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
parent
Returns the value of theparent
record component.- Returns:
- the value of the
parent
record component
-