@Test public void shouldHaveValue() throws Exception { { final String str = applier.apply(new SuffixFormSequence("+Im"), ImmutableSet.of(PhoneticAttribute.LastLetterVowel)); assertThat(str, equalTo("m")); } { final String str = applier.apply(new SuffixFormSequence("+Im"), ImmutableSet.of(PhoneticAttribute.LastLetterVowel, PhoneticAttribute.FirstLetterVowel)); assertThat(str, equalTo("m")); } }
@Override public String apply(SuffixFormSequence suffixFormSequence, Set<PhoneticAttribute> phoneticAttributesOfSurface) { final Sets.SetView<PhoneticAttribute> intersection = Sets.intersection(MODIFIER_ATTRIBUTES, phoneticAttributesOfSurface); return this.suffixFormSequenceTable.get(suffixFormSequence, intersection); }
PrecachingSuffixFormSequenceApplier extends SuffixFormSequenceApplier { @Override public String apply(SuffixFormSequence suffixFormSequence, Set<PhoneticAttribute> phoneticAttributesOfSurface) { final Sets.SetView<PhoneticAttribute> intersection = Sets.intersection(MODIFIER_ATTRIBUTES, phoneticAttributesOfSurface); return this.suffixFormSequenceTable.get(suffixFormSequence, intersection); } }
PrecachingSuffixFormSequenceApplier extends SuffixFormSequenceApplier { @Override public String apply(SuffixFormSequence suffixFormSequence, Set<PhoneticAttribute> phoneticAttributesOfSurface) { final Sets.SetView<PhoneticAttribute> intersection = Sets.intersection(MODIFIER_ATTRIBUTES, phoneticAttributesOfSurface); return this.suffixFormSequenceTable.get(suffixFormSequence, intersection); } PrecachingSuffixFormSequenceApplier(SuffixGraph suffixGraph, SuffixFormSequenceApplier delegate); }
PrecachingSuffixFormSequenceApplier extends SuffixFormSequenceApplier { @Override public String apply(SuffixFormSequence suffixFormSequence, Set<PhoneticAttribute> phoneticAttributesOfSurface) { final Sets.SetView<PhoneticAttribute> intersection = Sets.intersection(MODIFIER_ATTRIBUTES, phoneticAttributesOfSurface); return this.suffixFormSequenceTable.get(suffixFormSequence, intersection); } PrecachingSuffixFormSequenceApplier(SuffixGraph suffixGraph, SuffixFormSequenceApplier delegate); @Override String apply(SuffixFormSequence suffixFormSequence, Set<PhoneticAttribute> phoneticAttributesOfSurface); }
PrecachingSuffixFormSequenceApplier extends SuffixFormSequenceApplier { @Override public String apply(SuffixFormSequence suffixFormSequence, Set<PhoneticAttribute> phoneticAttributesOfSurface) { final Sets.SetView<PhoneticAttribute> intersection = Sets.intersection(MODIFIER_ATTRIBUTES, phoneticAttributesOfSurface); return this.suffixFormSequenceTable.get(suffixFormSequence, intersection); } PrecachingSuffixFormSequenceApplier(SuffixGraph suffixGraph, SuffixFormSequenceApplier delegate); @Override String apply(SuffixFormSequence suffixFormSequence, Set<PhoneticAttribute> phoneticAttributesOfSurface);  }