Package one.microstream.chars
Class Concatentation
- java.lang.Object
-
- one.microstream.chars.Concatentation
-
- All Implemented Interfaces:
CharSequence
public class Concatentation extends Object implements CharSequence
-
-
Constructor Summary
Constructors Constructor Description Concatentation(CharSequence s1, CharSequence s2)
-
Method Summary
Modifier and Type Method Description StringBuilderassemble(StringBuilder sb)charcharAt(int index)intlength()StringsubSequence(int start, int end)Assembles a String resembling this concatenation and builds a String subSequence from it.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.CharSequence
chars, codePoints
-
-
-
-
Constructor Detail
-
Concatentation
public Concatentation(CharSequence s1, CharSequence s2)
-
-
Method Detail
-
toString
public String toString()
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject- See Also:
Object.toString()
-
charAt
public char charAt(int index)
- Specified by:
charAtin interfaceCharSequence- Parameters:
index-- See Also:
CharSequence.charAt(int)
-
length
public int length()
- Specified by:
lengthin interfaceCharSequence- See Also:
CharSequence.length()
-
subSequence
public String subSequence(int start, int end)
Assembles a String resembling this concatenation and builds a String subSequence from it.- Specified by:
subSequencein interfaceCharSequence- Parameters:
start- the start index of the sub sequence.end- the end index of the sub sequence.- Returns:
- a String containing the defined sub sequence.
- See Also:
CharSequence.subSequence(int,int),String.subSequence(int,int)
-
assemble
public StringBuilder assemble(StringBuilder sb)
-
-