Class Feature


  • public class Feature
    extends Object
    Represents a feature file.
    • Constructor Detail

      • Feature

        public Feature​(String name,
                       String description,
                       String uri,
                       int index)
        Default constructor.
        Parameters:
        name - The feature name.
        description - The feature description.
        uri - The Cucumber feature file URI.
        index - The internal Cluecumber index.
    • Method Detail

      • getName

        public String getName()
        Get the feature name.
        Returns:
        The name string.
      • getDescription

        public String getDescription()
        Get the feature description.
        Returns:
        The description string.
      • getUri

        public String getUri()
        Get the Cucumber URI for this feature file.
        Returns:
        The URI string.
      • getIndex

        public int getIndex()
        Get the Cluecumber internal index for this feature.
        Returns:
        The index.
      • equals

        public boolean equals​(Object o)
        Comparator for feature file comparison. Description is not taken into account for now.
        Overrides:
        equals in class Object
        Parameters:
        o - The Feature instance to compare to this one.
        Returns:
        true if both features are the same.
      • hashCode

        public int hashCode()
        Get the hash code of this feature file's name and index.
        Overrides:
        hashCode in class Object
        Returns:
        The hash.