Class ProductPosition

java.lang.Object
org.variantsync.boosting.position.ProductPosition
All Implemented Interfaces:
Serializable

public class ProductPosition extends Object implements Serializable
Represents a mapping between a Product and a Position.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final Position
     
    final Variant
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProductPosition(Variant variant, Position position)
    Constructs a new ProductPosition object with the given Product and Position.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Retrieves the column number associated with the Position of this ProductPosition.
    boolean
    Checks if this ProductPosition is equal to another object.
    Retrieves the file path associated with the Position of this ProductPosition.
    int
    Generates a hash code for this ProductPosition.
    int
    Retrieves the line number associated with the Position of this ProductPosition.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • variant

      public final Variant variant
    • position

      public final Position position
  • Constructor Details

    • ProductPosition

      public ProductPosition(Variant variant, Position position)
      Constructs a new ProductPosition object with the given Product and Position.
      Parameters:
      variant - The Product object to associate with this ProductPosition.
      position - The Position object to associate with this ProductPosition.
  • Method Details

    • equals

      public boolean equals(Object o)
      Checks if this ProductPosition is equal to another object.
      Overrides:
      equals in class Object
      Parameters:
      o - The object to compare with this ProductPosition.
      Returns:
      true if the objects are equal, false otherwise.
    • hashCode

      public int hashCode()
      Generates a hash code for this ProductPosition.
      Overrides:
      hashCode in class Object
      Returns:
      The hash code for this ProductPosition.
    • filePath

      public Path filePath()
      Retrieves the file path associated with the Position of this ProductPosition.
      Returns:
      The file path of the Position.
    • lineNumber

      public int lineNumber()
      Retrieves the line number associated with the Position of this ProductPosition.
      Returns:
      The line number of the Position.
    • columnNumber

      public int columnNumber()
      Retrieves the column number associated with the Position of this ProductPosition.
      Returns:
      The column number of the Position.