Class DefaultFeatureContainer<QI>
java.lang.Object
de.monochromata.anaphors.ast.feature.DefaultFeatureContainer<QI>
- Type Parameters:
QI- The type used to represent qualified identifiers
- All Implemented Interfaces:
FeatureContainer<QI>
- Direct Known Subclasses:
AbstractReferent
public class DefaultFeatureContainer<QI> extends Object implements FeatureContainer<QI>
-
Constructor Summary
Constructors Constructor Description DefaultFeatureContainer() -
Method Summary
Modifier and Type Method Description protected voidadd(Feature<QI> feature)protected voidaddAll(Set<Feature<QI>> features)booleancontainsFeaturesOf(FeatureContainer<QI> other)Compares the features in this container to the features in the given container.booleanequals(Object obj)Set<Feature<QI>>getFeatures()Provides access to the features of this container.inthashCode()booleanisEmpty()Returns true, if this container contains no features.protected voidremove(Feature<QI> feature)protected voidremoveAll(Set<Feature<QI>> features)StringtoString()
-
Constructor Details
-
DefaultFeatureContainer
public DefaultFeatureContainer()
-
-
Method Details
-
add
-
addAll
-
remove
-
removeAll
-
getFeatures
Description copied from interface:FeatureContainerProvides access to the features of this container.TODO: Maybe return a sorted set?
- Specified by:
getFeaturesin interfaceFeatureContainer<QI>- Returns:
- The set of features in the container. The set is not modifiable.
-
isEmpty
Description copied from interface:FeatureContainerReturns true, if this container contains no features.- Specified by:
isEmptyin interfaceFeatureContainer<QI>- Returns:
- true}, if
FeatureContainer.getFeatures()returns an empty set, false otherwise.
-
containsFeaturesOf
Description copied from interface:FeatureContainerCompares the features in this container to the features in the given container.- Specified by:
containsFeaturesOfin interfaceFeatureContainer<QI>- Parameters:
other- another container whose features are to be compared to the features in this container.- Returns:
- {literal true}, if this container contains all features contained in the given container, false otherwise.
-
hashCode
-
equals
-
toString
-