| Modifier and Type | Class and Description |
|---|---|
static class |
MultimapAlignment.Builder<LeftT,RightT> |
| Modifier and Type | Method and Description |
|---|---|
Set<RightT> |
alignedToLeftItem(Object leftItem)
Get all items in the right set, if any, which align to the provided left set item.
|
Set<LeftT> |
alignedToRightItem(Object rightItem)
Get all items in the left set, if any, which align to the provided right set item.
|
Set<LeftT> |
allLeftItems() |
Set<RightT> |
allRightItems() |
static <LeftT,RightT> |
builder() |
static <LeftT,RightT> |
create(Iterable<? extends LeftT> leftItems,
Iterable<? extends RightT> rightItems,
com.google.common.collect.Multimap<? extends LeftT,? extends RightT> leftToRight,
com.google.common.collect.Multimap<? extends RightT,? extends LeftT> rightToLeft)
Creates an
Alignment from Multimaps. |
Set<LeftT> |
leftAligned()
Those items in the left set which were paired with something in the right.
|
Set<LeftT> |
leftUnaligned()
Those items in the left set which were not paired with anything in the right.
|
Set<RightT> |
rightAligned()
Those items in the right set which were paired with something in the right.
|
Set<RightT> |
rightUnaligned()
Those items in the right set which were not paired with anything in the right.
|
public static <LeftT,RightT> Alignment<LeftT,RightT> create(Iterable<? extends LeftT> leftItems, Iterable<? extends RightT> rightItems, com.google.common.collect.Multimap<? extends LeftT,? extends RightT> leftToRight, com.google.common.collect.Multimap<? extends RightT,? extends LeftT> rightToLeft)
Alignment from Multimaps.leftItems - all items in the left alignment set.rightItems - all items in the right alignment set.leftToRight - the mapping from left items to their right partners.rightToLeft - the mapping from right items to their left partners.public Set<LeftT> leftUnaligned()
AlignmentleftUnaligned in interface Alignment<LeftT,RightT>public Set<RightT> rightUnaligned()
AlignmentrightUnaligned in interface Alignment<LeftT,RightT>public Set<LeftT> leftAligned()
AlignmentleftAligned in interface Alignment<LeftT,RightT>public Set<RightT> rightAligned()
AlignmentrightAligned in interface Alignment<LeftT,RightT>public Set<LeftT> alignedToRightItem(Object rightItem)
AlignmentalignedToRightItem(y), then y is in alignedToRightItem(x).alignedToRightItem in interface Alignment<LeftT,RightT>public Set<RightT> alignedToLeftItem(Object leftItem)
AlignmentalignedToRightItem(y), then y is in alignedToRightItem(x).alignedToLeftItem in interface Alignment<LeftT,RightT>public Set<LeftT> allLeftItems()
allLeftItems in interface Alignment<LeftT,RightT>public Set<RightT> allRightItems()
allRightItems in interface Alignment<LeftT,RightT>public static <LeftT,RightT> MultimapAlignment.Builder<LeftT,RightT> builder()
Copyright © 2016. All rights reserved.