Class FeatureIndex

java.lang.Object
com._1c.g5.v8.dt.lcore.util.FeatureIndex

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

    Constructors
    Constructor
    Description
    FeatureIndex(org.eclipse.emf.ecore.EStructuralFeature feature, int index)
    Constructs a new feature/index.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    org.eclipse.emf.ecore.EStructuralFeature
    Returns the feature.
    int
    Returns the index of a value in the list of feature values.
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • 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 Details

    • 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
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object