Class MergedPairsInclude
Object
MergedPairsInclude
Specifies which parts of a merged pair to include in calculations.
This class allows for selective inclusion of the first object, second object, and/or the merged object in feature calculations.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a MergedPairsInclude with all options set to true.MergedPairsInclude
(boolean includeFirst, boolean includeSecond, boolean includeMerged) Constructs a MergedPairsInclude with specified inclusion options. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if the first object should be included.boolean
Checks if either the first or second object should be included.boolean
Checks if the merged object should be included.boolean
Checks if the second object should be included.
-
Constructor Details
-
MergedPairsInclude
public MergedPairsInclude()Constructs a MergedPairsInclude with all options set to true. -
MergedPairsInclude
public MergedPairsInclude(boolean includeFirst, boolean includeSecond, boolean includeMerged) Constructs a MergedPairsInclude with specified inclusion options.- Parameters:
includeFirst
- whether to include the first objectincludeSecond
- whether to include the second objectincludeMerged
- whether to include the merged object
-
-
Method Details
-
includeFirstOrSecond
public boolean includeFirstOrSecond()Checks if either the first or second object should be included.- Returns:
- true if either the first or second object should be included, false otherwise
-
includeFirst
public boolean includeFirst()Checks if the first object should be included.- Returns:
- true if the first object should be included, false otherwise
-
includeSecond
public boolean includeSecond()Checks if the second object should be included.- Returns:
- true if the second object should be included, false otherwise
-
includeMerged
public boolean includeMerged()Checks if the merged object should be included.- Returns:
- true if the merged object should be included, false otherwise
-