|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Specifies a pair of String objects. Such pairs quite common and deserve to be modeled in a separate interface.
| Field Summary | |
static IStringPair[] |
EMPTY_ARRAY
An immutable empty array of this type. |
| Method Summary | |
java.lang.String[] |
asArray()
Returns both strings of this pair in a String array. |
java.lang.String |
asString(java.lang.String separator)
Returns the two strings as one string separated by the given separator. |
java.lang.String |
getString1()
Returns the first string of this pair. |
java.lang.String |
getString2()
Returns the second string of this pair. |
| Field Detail |
public static final IStringPair[] EMPTY_ARRAY
| Method Detail |
public java.lang.String getString1()
public java.lang.String getString2()
public java.lang.String[] asArray()
public java.lang.String asString(java.lang.String separator)
separator - A separator to be placed between the two strings.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||