Class FieldPhraseList.WeightedPhraseInfo

    • Constructor Detail

      • WeightedPhraseInfo

        public WeightedPhraseInfo​(java.util.LinkedList<FieldTermStack.TermInfo> terms,
                                  float boost)
      • WeightedPhraseInfo

        public WeightedPhraseInfo​(java.util.LinkedList<FieldTermStack.TermInfo> terms,
                                  float boost,
                                  int seqnum)
      • WeightedPhraseInfo

        public WeightedPhraseInfo​(java.util.Collection<FieldPhraseList.WeightedPhraseInfo> toMerge)
        Merging constructor. Note that this just grabs seqnum from the first info.
    • Method Detail

      • getText

        public java.lang.String getText()
        Text of the match, calculated on the fly. Use for debugging only.
        Returns:
        the text
      • getBoost

        public float getBoost()
        Returns:
        the boost
      • getStartOffset

        public int getStartOffset()
      • getEndOffset

        public int getEndOffset()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getSeqnum

        public int getSeqnum()
        Returns:
        the seqnum
      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object