public final class CharBlock extends ArrayRef<char[]> implements CharSequence
ArrayRef.Allocator<T>| Constructor and Description |
|---|
CharBlock() |
CharBlock(char[] src) |
CharBlock(char[] src,
boolean copy) |
CharBlock(char[] src,
int off,
int len) |
CharBlock(char[] src,
int off,
int len,
boolean copy) |
CharBlock(CharBlock src) |
CharBlock(CharBlock src,
boolean copy) |
CharBlock(CharBlock src,
int off,
int len,
boolean copy) |
CharBlock(CharSequence src) |
CharBlock(CharSequence src,
int off,
int len) |
CharBlock(int cap) |
| Modifier and Type | Method and Description |
|---|---|
protected char[] |
allocBuffer(int cap) |
char |
charAt(int idx) |
CharBlock |
clear() |
int |
length() |
CharSequence |
subSequence(int start,
int end) |
CharSequence |
subSequence(int start,
int end,
boolean copy) |
String |
toString() |
protected int |
totalBufferSize(char[] buf) |
advance, buffer, canEqual, capacity, copy, copyIn, copyIn, copyOut, copyOut, ensureCapacity, ensureSpareCapacity, equals, getBuffer, getOffset, getOffset, getSize, hashCode, incrementSize, limit, offset, offset, set, set, set, set, set, setSize, size, spareCapacity, toArray, toArray, toArray, toArray, totalBufferSizeclone, finalize, getClass, notify, notifyAll, wait, wait, waitchars, codePointspublic CharBlock()
public CharBlock(int cap)
public CharBlock(char[] src)
public CharBlock(char[] src,
boolean copy)
public CharBlock(char[] src,
int off,
int len)
public CharBlock(CharBlock src)
public CharBlock(CharBlock src, boolean copy)
public CharBlock(CharSequence src)
public CharBlock(CharSequence src, int off, int len)
public CharBlock(CharBlock src, int off, int len, boolean copy)
public CharBlock(char[] src,
int off,
int len,
boolean copy)
public int length()
length in interface CharSequencepublic char charAt(int idx)
charAt in interface CharSequenceprotected int totalBufferSize(char[] buf)
totalBufferSize in class ArrayRef<char[]>protected char[] allocBuffer(int cap)
allocBuffer in class ArrayRef<char[]>public CharSequence subSequence(int start, int end)
subSequence in interface CharSequencepublic CharSequence subSequence(int start, int end, boolean copy)
public String toString()
toString in interface CharSequencetoString in class ArrayRef<char[]>Copyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.