Class CharArraySegment
java.lang.Object
org.ojalgo.netio.CharArraySegment
- All Implemented Interfaces:
CharSequence
- Direct Known Subclasses:
CharArraySegment.RootSegment, CharArraySegment.Subsegment
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class(package private) static final class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCharArraySegment(char[] array, int start, int end) CharArraySegment(CharArraySegment parent, int start, int end) -
Method Summary
Modifier and TypeMethodDescriptionfinal charcharAt(int index) (package private) final char[]getArray()final intlength()(package private) abstract intstart()final CharArraySegmentsubSequence(int start, int end) final StringtoString()static CharArraySegmentvalueOf(char[] array) static CharArraySegmentvalueOf(char[] array, int start, int end) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface CharSequence
chars, codePoints, getChars, isEmpty
-
Field Details
-
myArray
private final char[] myArray -
end
int end -
start
int start
-
-
Constructor Details
-
CharArraySegment
CharArraySegment(char[] array, int start, int end) -
CharArraySegment
CharArraySegment(CharArraySegment parent, int start, int end)
-
-
Method Details
-
valueOf
-
valueOf
-
charAt
public final char charAt(int index) - Specified by:
charAtin interfaceCharSequence
-
length
public final int length()- Specified by:
lengthin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-
getArray
final char[] getArray() -
start
abstract int start()
-