public class BasicStringWrapper extends Object implements StringWrapper
| Constructor and Description |
|---|
BasicStringWrapper(String s) |
| Modifier and Type | Method and Description |
|---|---|
char |
charAt(int i)
Return the i-th char of the wrapped string
|
int |
hashCode() |
int |
length()
Return the length of the wrapped string
|
String |
toString() |
String |
unwrap()
Return the string that is wrapped.
|
public BasicStringWrapper(String s)
public char charAt(int i)
StringWrappercharAt in interface StringWrapperpublic int length()
StringWrapperlength in interface StringWrapperpublic String unwrap()
StringWrapperunwrap in interface StringWrapperCopyright © 2016. All rights reserved.