Class FeatureIndex


  • public final class FeatureIndex
    extends Object
    Groups a feature with a value index.
    • Constructor Detail

      • FeatureIndex

        public FeatureIndex​(org.eclipse.emf.ecore.EStructuralFeature feature,
                            int index)
        Constructs a new feature/index.
        Parameters:
        feature - a feature (not null)
        index - the index of a value in the list of feature values. Ignored if the feature is single-valued
    • Method Detail

      • getFeature

        public org.eclipse.emf.ecore.EStructuralFeature getFeature()
        Returns the feature.
        Returns:
        the feature (never null)
      • getIndex

        public int getIndex()
        Returns the index of a value in the list of feature values. Returns 0 if the feature is single-valued.
        Returns:
        the value index
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object