Class SearchContext


  • public class SearchContext
    extends java.lang.Object
    The search results are grouped by context. In order to visualize it accordingly each context must have a name and weight.
    Author:
    mvrueden
    • Constructor Summary

      Constructors 
      Constructor Description
      SearchContext​(java.lang.String name)  
      SearchContext​(java.lang.String name, int weight)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean contributesTo​(java.lang.String contextName)  
      boolean equals​(java.lang.Object o)  
      java.lang.String getName()  
      int getWeight()  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SearchContext

        public SearchContext​(java.lang.String name)
      • SearchContext

        public SearchContext​(java.lang.String name,
                             int weight)
    • Method Detail

      • getName

        public java.lang.String getName()
      • getWeight

        public int getWeight()
      • contributesTo

        public boolean contributesTo​(java.lang.String contextName)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object