Package org.jruby.runtime.load
Class LibrarySearcher.StringWrapper
java.lang.Object
org.jruby.runtime.load.LibrarySearcher.StringWrapper
- All Implemented Interfaces:
CharSequence
- Enclosing class:
- LibrarySearcher
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStringWrapper(String str, int beg, int len) Construct a wrapper with the given values. -
Method Summary
Modifier and TypeMethodDescriptioncharcharAt(int index) (package private) voidclear()Clear this wrapper.(package private) LibrarySearcher.StringWrapperdup()booleaninthashCode()intlength()(package private) voidPopulate this wrapper with the given values.subSequence(int start, int end) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Field Details
-
str
-
beg
private int beg -
len
private int len -
hash
private int hash
-
-
Constructor Details
-
StringWrapper
StringWrapper(String str, int beg, int len) Construct a wrapper with the given values.- Parameters:
str-beg-len-
-
-
Method Details
-
rewrap
Populate this wrapper with the given values.- Parameters:
str-beg-len-
-
clear
void clear()Clear this wrapper. -
dup
-
length
public int length()- Specified by:
lengthin interfaceCharSequence
-
charAt
public char charAt(int index) - Specified by:
charAtin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-
equals
-
hashCode
public int hashCode()
-