Interface INativeFeature


@Ser public interface INativeFeature
Characteristics computed on a native item.
  • Method Summary

    Modifier and Type
    Method
    Description
    Create a deep copy of the feature.
    Get the feature type display name.
    Get the feature value.
    boolean
    Match features; two features are "matching" if they are equals from a signatures matching point-of-view.
  • Method Details

    • getValue

      Object getValue()
      Get the feature value.
      Returns:
      feature value
    • getType

      String getType()
      Get the feature type display name.
      Returns:
      a String describing the feature type. Used only for display purpose
    • match

      boolean match(INativeFeature feature)
      Match features; two features are "matching" if they are equals from a signatures matching point-of-view. Feature matching is an equivalence relation (reflexive, symmetric and transitive).

      Note: two features might be not be equals() and still be matching. Therefore, this method should be the preferred one for signatures matching.

      Parameters:
      feature - feature to compare against
      Returns:
      true if the two features match, false otherwise
    • deepCopy

      INativeFeature deepCopy()
      Create a deep copy of the feature.
      Returns:
      deep copy of this feature