private Collection < EqClassT > getAlignedTo ( final Object item ) { if ( rightEquivalenceClassesToProvenances . containsKey ( item ) && leftEquivalenceClassesToProvenances . containsKey ( item ) ) { return ImmutableList . of ( ( EqClassT ) item ) ; } else { return ImmutableList . of ( ) ; } }
Any equivalence class is by definition aligned to itself if it is present on both the left and the right . Otherwise it has no alignment .