Package com.seeq.model
Class SwapOptionV1
java.lang.Object
com.seeq.model.SwapOptionV1
A list of Items that can be chosen as the swap root, ranked by the number of matches found between the Items to be swapped and the Items in the tree rooted at the Item to be swapped in.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddInvalidSwapOutsItem
(InvalidSwapOutV1 invalidSwapOutsItem) addItemsWithSwapPairsItem
(ItemWithSwapPairsV1 itemsWithSwapPairsItem) boolean
The list of items from the query parameters that are invalid for swapping out with root itemThe list of items from the query parameters that can be swapped, augmented with the swap pairs needed to perform the swapGet swapRootCandidateint
hashCode()
invalidSwapOuts
(List<InvalidSwapOutV1> invalidSwapOuts) itemsWithSwapPairs
(List<ItemWithSwapPairsV1> itemsWithSwapPairs) void
setInvalidSwapOuts
(List<InvalidSwapOutV1> invalidSwapOuts) void
setItemsWithSwapPairs
(List<ItemWithSwapPairsV1> itemsWithSwapPairs) void
setSwapRootCandidate
(ItemPreviewWithAssetsV1 swapRootCandidate) swapRootCandidate
(ItemPreviewWithAssetsV1 swapRootCandidate) toString()
-
Constructor Details
-
SwapOptionV1
public SwapOptionV1()
-
-
Method Details
-
invalidSwapOuts
-
addInvalidSwapOutsItem
-
getInvalidSwapOuts
The list of items from the query parameters that are invalid for swapping out with root item- Returns:
- invalidSwapOuts
-
setInvalidSwapOuts
-
itemsWithSwapPairs
-
addItemsWithSwapPairsItem
-
getItemsWithSwapPairs
The list of items from the query parameters that can be swapped, augmented with the swap pairs needed to perform the swap- Returns:
- itemsWithSwapPairs
-
setItemsWithSwapPairs
-
swapRootCandidate
-
getSwapRootCandidate
Get swapRootCandidate- Returns:
- swapRootCandidate
-
setSwapRootCandidate
-
equals
-
hashCode
public int hashCode() -
toString
-