Class KeepFirstInflexionScheme
java.lang.Object
java.util.AbstractCollection<MorphoSyntacticFeature>
java.util.AbstractSet<MorphoSyntacticFeature>
java.util.TreeSet<MorphoSyntacticFeature>
org.getalp.dbnary.morphology.InflectionScheme
org.getalp.dbnary.morphology.KeepFirstInflexionScheme
- All Implemented Interfaces:
Serializable, Cloneable, Iterable<MorphoSyntacticFeature>, Collection<MorphoSyntacticFeature>, NavigableSet<MorphoSyntacticFeature>, SequencedCollection<MorphoSyntacticFeature>, SequencedSet<MorphoSyntacticFeature>, Set<MorphoSyntacticFeature>, SortedSet<MorphoSyntacticFeature>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(MorphoSyntacticFeature morphoSyntacticFeature) Adding a feature to the inflection scheme.Methods inherited from class InflectionScheme
attachTo, toStringMethods inherited from class TreeSet
addAll, addFirst, addLast, ceiling, clear, clone, comparator, contains, descendingIterator, descendingSet, first, floor, headSet, headSet, higher, isEmpty, iterator, last, lower, pollFirst, pollLast, remove, size, spliterator, subSet, subSet, tailSet, tailSetMethods inherited from class AbstractSet
equals, hashCode, removeAllMethods inherited from class AbstractCollection
containsAll, retainAll, toArray, toArrayMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface NavigableSet
removeFirst, removeLast, reversed
-
Constructor Details
-
KeepFirstInflexionScheme
public KeepFirstInflexionScheme()
-
-
Method Details
-
add
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:
addin interfaceCollection<MorphoSyntacticFeature>- Specified by:
addin interfaceSet<MorphoSyntacticFeature>- Overrides:
addin classTreeSet<MorphoSyntacticFeature>- Parameters:
morphoSyntacticFeature-- Returns:
-