java.lang.Object
java.lang.Record
com.iamsoft.fixparser.ComponentItemInfo
- Record Components:
ownerComponent
- The name of the component to witch this item belongs.fieldInfo
- Field information if this item represents a field andnull
if it represents a component.componentName
- The component name if this item represents a component andnull
if it represents a field.required
-true
if field/component is requiredcomment
- comment
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomment()
Returns the value of thecomment
record component.Returns the value of thecomponentName
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefieldInfo
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theownerComponent
record component.required()
Returns the value of therequired
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ComponentItemInfo
public ComponentItemInfo(String ownerComponent, FieldInfo fieldInfo, String componentName, Boolean required, String comment) Creates an instance of aComponentItemInfo
record class.- Parameters:
ownerComponent
- the value for theownerComponent
record componentfieldInfo
- the value for thefieldInfo
record componentcomponentName
- the value for thecomponentName
record componentrequired
- the value for therequired
record componentcomment
- the value for thecomment
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)
. -
ownerComponent
Returns the value of theownerComponent
record component.- Returns:
- the value of the
ownerComponent
record component
-
fieldInfo
Returns the value of thefieldInfo
record component.- Returns:
- the value of the
fieldInfo
record component
-
componentName
Returns the value of thecomponentName
record component.- Returns:
- the value of the
componentName
record component
-
required
Returns the value of therequired
record component.- Returns:
- the value of the
required
record component
-
comment
Returns the value of thecomment
record component.- Returns:
- the value of the
comment
record component
-