Class CharSequenceSubSequence

java.lang.Object
com.intellij.util.text.CharSequenceSubSequence
All Implemented Interfaces:
CharSequenceWithStringHash, CharArrayExternalizable, CharSequence

public class CharSequenceSubSequence extends Object implements CharSequence, CharArrayExternalizable, CharSequenceWithStringHash
  • Constructor Details

    • CharSequenceSubSequence

      public CharSequenceSubSequence(@NotNull @NotNull CharSequence chars)
    • CharSequenceSubSequence

      public CharSequenceSubSequence(@NotNull @NotNull CharSequence chars, int start, int end)
  • Method Details

    • length

      public final int length()
      Specified by:
      length in interface CharSequence
    • charAt

      public final char charAt(int index)
      Specified by:
      charAt in interface CharSequence
    • subSequence

      @NotNull public @NotNull CharSequence subSequence(int start, int end)
      Specified by:
      subSequence in interface CharSequence
    • toString

      @NotNull public @NotNull String toString()
      Specified by:
      toString in interface CharSequence
      Overrides:
      toString in class Object
    • getChars

      public void getChars(int start, int end, char @NotNull [] dest, int destPos)
      Description copied from interface: CharArrayExternalizable
      Copies own character sub-sequence to the given array
      Specified by:
      getChars in interface CharArrayExternalizable
      Parameters:
      start - the index where to start taking chars from in this sequence
      end - the index where to end taking chars in this sequence
      dest - the array to put characters into
      destPos - the index where to put the characters in the dest array
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface CharSequenceWithStringHash
      Overrides:
      hashCode in class Object