|
||||||||||
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 | |
---|---|
String[] |
asArray()
Returns both strings of this pair in a String array. |
String |
asString(String separator)
Returns the two strings as one string separated by the given separator. |
String |
getString1()
Returns the first string of this pair. |
String |
getString2()
Returns the second string of this pair. |
Field Detail |
---|
static final IStringPair[] EMPTY_ARRAY
Method Detail |
---|
String getString1()
String getString2()
String[] asArray()
String asString(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 |