|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.intermine.util.StringConstructor
public class StringConstructor
A CharSequence object representing a String constructed out of a sequence of other Strings. This object does not copy any of the string data - rather, it stores pointers to the original Strings it was constructed with.
| Constructor Summary | |
|---|---|
StringConstructor()
Main constructor - creates an empty object. |
|
| Method Summary | |
|---|---|
StringConstructor |
append(boolean b)
Appends a boolean onto the end of this object. |
StringConstructor |
append(double d)
Appends a double onto the end of this object. |
StringConstructor |
append(float f)
Appends a float onto the end of this object. |
StringConstructor |
append(int i)
Appends an int onto the end of this object. |
StringConstructor |
append(long l)
Appends a long onto the end of this object. |
StringConstructor |
append(java.lang.Object o)
Appends an Object onto the end of this object. |
StringConstructor |
append(java.lang.String string)
Appends a String onto the end of this object. |
char |
charAt(int index)
|
java.util.Collection<java.lang.String> |
getStrings()
Returns a Collection containing the Strings that form this object, in the correct order. |
int |
length()
|
java.lang.CharSequence |
subSequence(int start,
int end)
|
java.lang.String |
toString()
Returns the String that this object represents - note that this method should be avoided, because it defeats the purpose of keeping the constituent Strings separate in the first place. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StringConstructor()
| Method Detail |
|---|
public StringConstructor append(java.lang.String string)
string - the String
public StringConstructor append(java.lang.Object o)
o - an Object
public StringConstructor append(boolean b)
b - a boolean
public StringConstructor append(int i)
i - an int
public StringConstructor append(long l)
l - a long
public StringConstructor append(float f)
f - a float
public StringConstructor append(double d)
d - a double
public int length()
length in interface java.lang.CharSequencepublic java.lang.String toString()
toString in interface java.lang.CharSequencetoString in class java.lang.Objectpublic char charAt(int index)
charAt in interface java.lang.CharSequence
public java.lang.CharSequence subSequence(int start,
int end)
subSequence in interface java.lang.CharSequencepublic java.util.Collection<java.lang.String> getStrings()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||