Class RichSequenceImpl

    • Method Detail

      • sequenceOf

        @NotNull
        public RichSequence sequenceOf​(@Nullable
                                       java.lang.CharSequence charSequence,
                                       int startIndex,
                                       int endIndex)
        Description copied from interface: IRichSequence
        Factory function
        Specified by:
        sequenceOf in interface IRichSequence<RichSequence>
        Parameters:
        charSequence - char sequence from which to construct a rich char sequence
        startIndex - start index of the sequence to use
        endIndex - end index of the sequence to use
        Returns:
        rich char sequence from given inputs
      • subSequence

        @NotNull
        public RichSequence subSequence​(int startIndex,
                                        int endIndex)
        Description copied from interface: IRichSequence
        Get a portion of this sequence

        NOTE: the returned value should only depend on start/end indices. If a subsequence of this sequence with matching start/end should equal (using equals()) all such subsequences of this sequence.

        Specified by:
        subSequence in interface java.lang.CharSequence
        Specified by:
        subSequence in interface IRichSequence<RichSequence>
        Parameters:
        startIndex - offset from startIndex of this sequence
        endIndex - offset from startIndex of this sequence
        Returns:
        based sequence whose contents reflect the selected portion
      • length

        public int length()
        Specified by:
        length in interface java.lang.CharSequence
      • charAt

        public char charAt​(int index)
        Specified by:
        charAt in interface java.lang.CharSequence
      • of

        @Deprecated
        public static RichSequence of​(java.lang.CharSequence charSequence)
        Deprecated.
      • of

        @Deprecated
        public static RichSequence of​(java.lang.CharSequence charSequence,
                                      int startIndex)
        Deprecated.
      • of

        @Deprecated
        public static RichSequence of​(java.lang.CharSequence charSequence,
                                      int startIndex,
                                      int endIndex)
        Deprecated.