Class StrictInflexionScheme

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

public class StrictInflexionScheme extends InflectionScheme
See Also:
  • Constructor Details

    • StrictInflexionScheme

      public StrictInflexionScheme()
  • Method Details

    • add

      public boolean add(MorphoSyntacticFeature morphoSyntacticFeature)
      Adding a feature to the inflection scheme. In a StrictInflexionScheme, the feature is added only if no other feature corresponding to the same property is already present in the Set. This guaranties that any code that will lead to a non functional inflection scheme will break.
      Specified by:
      add in interface Collection<MorphoSyntacticFeature>
      Specified by:
      add in interface Set<MorphoSyntacticFeature>
      Overrides:
      add in class TreeSet<MorphoSyntacticFeature>
      Parameters:
      morphoSyntacticFeature -
      Returns: