@Test public void shouldInsertVowel_A_WithHarmony() { final SuffixFormSequence.SuffixFormSequenceRuleType RULE_TYPE = SuffixFormSequence.SuffixFormSequenceRuleType.INSERT_VOWEL_A_WITH_HARMONY; { final SuffixFormSequence.SuffixFormSequenceRule rule = new SuffixFormSequenceRuleStub(RULE_TYPE); ImmutableSet<PhoneticAttribute> phoneticAttributes = ImmutableSet.of(); assertThat(applier.apply(rule, phoneticAttributes), equalTo('a')); } { final SuffixFormSequence.SuffixFormSequenceRule rule = new SuffixFormSequenceRuleStub(RULE_TYPE); ImmutableSet<PhoneticAttribute> phoneticAttributes = ImmutableSet.of(PhoneticAttribute.LastVowelBack); assertThat(applier.apply(rule, phoneticAttributes), equalTo('a')); } { final SuffixFormSequence.SuffixFormSequenceRule rule = new SuffixFormSequenceRuleStub(RULE_TYPE); ImmutableSet<PhoneticAttribute> phoneticAttributes = ImmutableSet.of(PhoneticAttribute.LastVowelFrontal); assertThat(applier.apply(rule, phoneticAttributes), equalTo('e')); } }
public Character apply(SuffixFormSequence.SuffixFormSequenceRule rule, ImmutableSet<PhoneticAttribute> phoneticAttributesOfSurface) { return rule.apply(phoneticAttributesOfSurface); }
SuffixFormSequenceRuleApplier { public Character apply(SuffixFormSequence.SuffixFormSequenceRule rule, ImmutableSet<PhoneticAttribute> phoneticAttributesOfSurface) { return rule.apply(phoneticAttributesOfSurface); } }
SuffixFormSequenceRuleApplier { public Character apply(SuffixFormSequence.SuffixFormSequenceRule rule, ImmutableSet<PhoneticAttribute> phoneticAttributesOfSurface) { return rule.apply(phoneticAttributesOfSurface); }  }
SuffixFormSequenceRuleApplier { public Character apply(SuffixFormSequence.SuffixFormSequenceRule rule, ImmutableSet<PhoneticAttribute> phoneticAttributesOfSurface) { return rule.apply(phoneticAttributesOfSurface); }  Character apply(SuffixFormSequence.SuffixFormSequenceRule rule, ImmutableSet<PhoneticAttribute> phoneticAttributesOfSurface); }
SuffixFormSequenceRuleApplier { public Character apply(SuffixFormSequence.SuffixFormSequenceRule rule, ImmutableSet<PhoneticAttribute> phoneticAttributesOfSurface) { return rule.apply(phoneticAttributesOfSurface); }  Character apply(SuffixFormSequence.SuffixFormSequenceRule rule, ImmutableSet<PhoneticAttribute> phoneticAttributesOfSurface);  }