Class Sentence


  • public class Sentence
    extends Object
    sentence desc class
    Author:
    chenxin
    • Constructor Detail

      • Sentence

        public Sentence​(String value,
                        int position)
        construct method
        Parameters:
        value -
        position -
      • Sentence

        public Sentence​(String value)
    • Method Detail

      • getPosition

        public int getPosition()
      • setPosition

        public Sentence setPosition​(int position)
      • getValue

        public String getValue()
      • getLength

        public int getLength()
      • setLength

        public Sentence setLength​(int length)
      • toString

        public String toString()
        rewrite the toString method
        Overrides:
        toString in class Object
        Returns:
        String