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 StringBuilder
assemble(StringBuilder sb)
char
charAt(int index)
int
length()
String
subSequence(int start, int end)
Assembles a String resembling this concatenation and builds a String subSequence from it.String
toString()
-
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:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
charAt
public char charAt(int index)
- Specified by:
charAt
in interfaceCharSequence
- Parameters:
index
-- See Also:
CharSequence.charAt(int)
-
length
public int length()
- Specified by:
length
in 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:
subSequence
in 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)
-
-