Record Class ComponentItemInfo

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 and null if it represents a component.
componentName - The component name if this item represents a component and null if it represents a field.
required - true if field/component is required
comment - comment

public record ComponentItemInfo(String ownerComponent, FieldInfo fieldInfo, String componentName, Boolean required, String comment) extends Record
  • Constructor Details

    • ComponentItemInfo

      public ComponentItemInfo(String ownerComponent, FieldInfo fieldInfo, String componentName, Boolean required, String comment)
      Creates an instance of a ComponentItemInfo record class.
      Parameters:
      ownerComponent - the value for the ownerComponent record component
      fieldInfo - the value for the fieldInfo record component
      componentName - the value for the componentName record component
      required - the value for the required record component
      comment - the value for the comment record component
  • Method Details

    • toString

      public final 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.
    • ownerComponent

      public String ownerComponent()
      Returns the value of the ownerComponent record component.
      Returns:
      the value of the ownerComponent record component
    • fieldInfo

      public FieldInfo fieldInfo()
      Returns the value of the fieldInfo record component.
      Returns:
      the value of the fieldInfo record component
    • componentName

      public String componentName()
      Returns the value of the componentName record component.
      Returns:
      the value of the componentName record component
    • required

      public Boolean required()
      Returns the value of the required record component.
      Returns:
      the value of the required record component
    • comment

      public String comment()
      Returns the value of the comment record component.
      Returns:
      the value of the comment record component