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, totalBufferSize
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
chars, codePoints
public 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 CharSequence
public char charAt(int idx)
charAt
in interface CharSequence
protected 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 CharSequence
public CharSequence subSequence(int start, int end, boolean copy)
public String toString()
toString
in interface CharSequence
toString
in class ArrayRef<char[]>
Copyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.