public class RepeatedSequence extends Object implements CharSequence
Partial repeat occurs when start % length() >0 and/or end % length() >0
The hashCode is purposefully matched to the string equivalent or this.toString().hashCode()
| Modifier and Type | Field and Description |
|---|---|
static RepeatedSequence |
NULL |
| Modifier and Type | Method and Description |
|---|---|
char |
charAt(int index) |
boolean |
equals(Object obj) |
int |
hashCode() |
int |
length() |
static @NotNull CharSequence |
of(char c,
int count)
Deprecated.
|
static @NotNull CharSequence |
of(@NotNull CharSequence chars,
int count)
Deprecated.
|
static @NotNull CharSequence |
of(@NotNull CharSequence chars,
int startIndex,
int endIndex)
Deprecated.
|
static @NotNull CharSequence |
ofSpaces(int count) |
RepeatedSequence |
repeat(int count) |
static @NotNull CharSequence |
repeatOf(char c,
int count) |
static @NotNull CharSequence |
repeatOf(@NotNull CharSequence chars,
int count) |
static @NotNull CharSequence |
repeatOf(@NotNull CharSequence chars,
int startIndex,
int endIndex) |
CharSequence |
subSequence(int startIndex,
int endIndex) |
@NotNull String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitchars, codePointspublic static RepeatedSequence NULL
public int length()
length in interface CharSequencepublic char charAt(int index)
charAt in interface CharSequencepublic CharSequence subSequence(int startIndex, int endIndex)
subSequence in interface CharSequencepublic RepeatedSequence repeat(int count)
@NotNull public @NotNull String toString()
toString in interface CharSequencetoString in class Object@NotNull public static @NotNull CharSequence ofSpaces(int count)
@NotNull public static @NotNull CharSequence repeatOf(char c, int count)
@NotNull public static @NotNull CharSequence repeatOf(@NotNull @NotNull CharSequence chars, int count)
@NotNull public static @NotNull CharSequence repeatOf(@NotNull @NotNull CharSequence chars, int startIndex, int endIndex)
@NotNull @Deprecated public static @NotNull CharSequence of(char c, int count)
@NotNull @Deprecated public static @NotNull CharSequence of(@NotNull @NotNull CharSequence chars, int count)
@NotNull @Deprecated public static @NotNull CharSequence of(@NotNull @NotNull CharSequence chars, int startIndex, int endIndex)
Copyright © 2020. All rights reserved.