Package org.getalp.dbnary.morphology
Class KeepLastInflexionScheme
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.TreeSet<MorphoSyntacticFeature>
-
- org.getalp.dbnary.morphology.InflectionScheme
-
- org.getalp.dbnary.morphology.KeepLastInflexionScheme
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<MorphoSyntacticFeature>
,Collection<MorphoSyntacticFeature>
,NavigableSet<MorphoSyntacticFeature>
,Set<MorphoSyntacticFeature>
,SortedSet<MorphoSyntacticFeature>
public class KeepLastInflexionScheme extends InflectionScheme
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KeepLastInflexionScheme()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(MorphoSyntacticFeature morphoSyntacticFeature)
Adding a feature to the inflection scheme.-
Methods inherited from class org.getalp.dbnary.morphology.InflectionScheme
attachTo, toString
-
Methods inherited from class java.util.TreeSet
addAll, ceiling, clear, clone, comparator, contains, descendingIterator, descendingSet, first, floor, headSet, headSet, higher, isEmpty, iterator, last, lower, pollFirst, pollLast, remove, size, spliterator, subSet, subSet, tailSet, tailSet
-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
containsAll, retainAll, toArray, toArray
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Method Detail
-
add
public boolean add(MorphoSyntacticFeature morphoSyntacticFeature)
Adding a feature to the inflection scheme. In a FunctionalInflexionScheme, the feature is added, but any feature corresponding to the same property that is present immediately before addition is silently removed from the set. 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 interfaceCollection<MorphoSyntacticFeature>
- Specified by:
add
in interfaceSet<MorphoSyntacticFeature>
- Overrides:
add
in classTreeSet<MorphoSyntacticFeature>
- Parameters:
morphoSyntacticFeature
-- Returns:
-
-