|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IStringPair
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 |
|---|
static final IStringPair[] EMPTY_ARRAY
| Method Detail |
|---|
java.lang.String getString1()
java.lang.String getString2()
java.lang.String[] asArray()
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 | ||||||||