Class KeepFirstInflexionScheme

All Implemented Interfaces:
Serializable, Cloneable, Iterable<MorphoSyntacticFeature>, Collection<MorphoSyntacticFeature>, NavigableSet<MorphoSyntacticFeature>, SequencedCollection<MorphoSyntacticFeature>, SequencedSet<MorphoSyntacticFeature>, Set<MorphoSyntacticFeature>, SortedSet<MorphoSyntacticFeature>

public class KeepFirstInflexionScheme extends InflectionScheme
See Also:
  • Constructor Details

    • KeepFirstInflexionScheme

      public KeepFirstInflexionScheme()
  • Method Details

    • add

      public boolean add(MorphoSyntacticFeature morphoSyntacticFeature)
      Adding a feature to the inflection scheme. In a KeepFirstInflexionScheme, the feature is added only if no feature corresponding to the same property is present immediately before addition. This guaranties that at any time, all properties contained in the inflection set are functional (i.e. are associated to only one value).
      Specified by:
      add in interface Collection<MorphoSyntacticFeature>
      Specified by:
      add in interface Set<MorphoSyntacticFeature>
      Overrides:
      add in class TreeSet<MorphoSyntacticFeature>
      Parameters:
      morphoSyntacticFeature -
      Returns: