Class CompletionProposal


  • @API(type=NOT_EXTENDABLE,
         src=PRIVATE)
    public final class CompletionProposal
    extends java.lang.Object
    Represents a text completion proposal.
    Since:
    24.1
    • Constructor Summary

      Constructors 
      Constructor Description
      CompletionProposal​(float score, java.lang.String[] tokens)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float getScore()  
      java.lang.String[] getTokens()  
      • Methods inherited from class java.lang.Object

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

      • CompletionProposal

        public CompletionProposal​(float score,
                                  java.lang.String[] tokens)
        Constructor.
        Parameters:
        score - The score of the proposal.
        tokens - The tokens that can follow the prefix.
    • Method Detail

      • getTokens

        public java.lang.String[] getTokens()
        Returns:
        The tokens that can follow the prefix.
        Since:
        24.1
      • getScore

        public float getScore()
        Returns:
        Returns the score of the proposal.