@Test public void shouldCreateSimpleRules() { { final SuffixFormSequence sequence = new SuffixFormSequence("n"); assertThat(sequence.getRules(), hasSize(1)); assertThat(sequence.getRules().get(0).getRuleType(), equalTo(SuffixFormSequence.SuffixFormSequenceRuleType.INSERT_NONVOWEL_LETTER)); assertThat(sequence.getRules().get(0).getCharToAdd().getCharValue(), equalTo('n')); } { final SuffixFormSequence sequence = new SuffixFormSequence("a"); assertThat(sequence.getRules(), hasSize(1)); assertThat(sequence.getRules().get(0).getRuleType(), equalTo(SuffixFormSequence.SuffixFormSequenceRuleType.INSERT_VOWEL_WITHOUT_HARMONY)); assertThat(sequence.getRules().get(0).getCharToAdd().getCharValue(), equalTo('a')); } { final SuffixFormSequence sequence = new SuffixFormSequence("and"); assertThat(sequence.getRules(), hasSize(3)); assertThat(sequence.getRules().get(0).getRuleType(), equalTo(SuffixFormSequence.SuffixFormSequenceRuleType.INSERT_VOWEL_WITHOUT_HARMONY)); assertThat(sequence.getRules().get(0).getCharToAdd().getCharValue(), equalTo('a')); assertThat(sequence.getRules().get(1).getRuleType(), equalTo(SuffixFormSequence.SuffixFormSequenceRuleType.INSERT_NONVOWEL_LETTER)); assertThat(sequence.getRules().get(1).getCharToAdd().getCharValue(), equalTo('n')); assertThat(sequence.getRules().get(2).getRuleType(), equalTo(SuffixFormSequence.SuffixFormSequenceRuleType.INSERT_NONVOWEL_LETTER)); assertThat(sequence.getRules().get(2).getCharToAdd().getCharValue(), equalTo('d')); } }
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();  }