public class StringView extends Object implements CharSequence
| Constructor and Description |
|---|
StringView(String str,
int start,
int end) |
| Modifier and Type | Method and Description |
|---|---|
char |
charAt(int index) |
boolean |
checkEquals(String expectString) |
boolean |
checkEqualsIgnoreCase(String expectString) |
String |
data() |
int |
end() |
boolean |
equals(Object obj) |
int |
hashCode()
A modified hash function from older JDK.
|
int |
length() |
String |
repr() |
int |
start() |
CharSequence |
subSequence(int start,
int end) |
StringView |
subview(int start0,
int end0) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitchars, codePointspublic StringView(String str, int start, int end)
public int length()
length in interface CharSequencepublic char charAt(int index)
charAt in interface CharSequencepublic CharSequence subSequence(int start, int end)
subSequence in interface CharSequencepublic int hashCode()
public String toString()
toString in interface CharSequencetoString in class Objectpublic String data()
public int start()
public int end()
public StringView subview(int start0, int end0)
public String repr()
public boolean checkEquals(String expectString)
public boolean checkEqualsIgnoreCase(String expectString)
Copyright © 2021. All rights reserved.