Class ProductPosition
java.lang.Object
org.variantsync.boosting.position.ProductPosition
- All Implemented Interfaces:
Serializable
Represents a mapping between a Product and a Position.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProductPosition(Variant variant, Position position) Constructs a new ProductPosition object with the given Product and Position. -
Method Summary
Modifier and TypeMethodDescriptionintRetrieves the column number associated with the Position of this ProductPosition.booleanChecks if this ProductPosition is equal to another object.filePath()Retrieves the file path associated with the Position of this ProductPosition.inthashCode()Generates a hash code for this ProductPosition.intRetrieves the line number associated with the Position of this ProductPosition.
-
Field Details
-
variant
-
position
-
-
Constructor Details
-
ProductPosition
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
Checks if this ProductPosition is equal to another object. -
hashCode
public int hashCode()Generates a hash code for this ProductPosition. -
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.
-