@Test public void shouldCreateDevoicableLetterRules() { { final SuffixFormSequence sequence = new SuffixFormSequence("b"); assertThat(sequence.getRules(), hasSize(1)); assertThat(sequence.getRules().get(0).getRuleType(), equalTo(SuffixFormSequence.SuffixFormSequenceRuleType.INSERT_DEVOICABLE_LETTER)); assertThat(sequence.getRules().get(0).getCharToAdd().getCharValue(), equalTo('b')); } { final SuffixFormSequence sequence = new SuffixFormSequence("c"); assertThat(sequence.getRules(), hasSize(1)); assertThat(sequence.getRules().get(0).getRuleType(), equalTo(SuffixFormSequence.SuffixFormSequenceRuleType.INSERT_DEVOICABLE_LETTER)); assertThat(sequence.getRules().get(0).getCharToAdd().getCharValue(), equalTo('c')); } { final SuffixFormSequence sequence = new SuffixFormSequence("+ydI"); assertThat(sequence.getRules(), hasSize(3)); assertThat(sequence.getRules().get(0).getRuleType(), equalTo(SuffixFormSequence.SuffixFormSequenceRuleType.INSERT_OPTIONAL_CONSONANT)); assertThat(sequence.getRules().get(0).getCharToAdd().getCharValue(), equalTo('y')); assertThat(sequence.getRules().get(1).getRuleType(), equalTo(SuffixFormSequence.SuffixFormSequenceRuleType.INSERT_DEVOICABLE_LETTER)); assertThat(sequence.getRules().get(1).getCharToAdd().getCharValue(), equalTo('d')); assertThat(sequence.getRules().get(2).getRuleType(), equalTo(SuffixFormSequence.SuffixFormSequenceRuleType.INSERT_VOWEL_I_WITH_HARMONY)); assertThat(sequence.getRules().get(2).getCharToAdd(), nullValue()); } }
public ImmutableList<SuffixFormSequenceRule> getRules() { return rules; }
SuffixFormSequence { public ImmutableList<SuffixFormSequenceRule> getRules() { return rules; } }
SuffixFormSequence { public ImmutableList<SuffixFormSequenceRule> getRules() { return rules; } SuffixFormSequence(String suffixFormStr); }
SuffixFormSequence { public ImmutableList<SuffixFormSequenceRule> getRules() { return rules; } SuffixFormSequence(String suffixFormStr); ImmutableList<SuffixFormSequenceRule> getRules(); String getSuffixFormStr(); @SuppressWarnings("UnusedDeclaration") boolean isBlank(); boolean isNotBlank(); boolean isFirstLetterVowel(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); boolean lastLetterCanBeVoiced(); }
SuffixFormSequence { public ImmutableList<SuffixFormSequenceRule> getRules() { return rules; } SuffixFormSequence(String suffixFormStr); ImmutableList<SuffixFormSequenceRule> getRules(); String getSuffixFormStr(); @SuppressWarnings("UnusedDeclaration") boolean isBlank(); boolean isNotBlank(); boolean isFirstLetterVowel(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); boolean lastLetterCanBeVoiced();  }