|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--ru.novosoft.dc.core.util.Strings
The class contains an array of values of the String type.
The array length is specifed while constructing.
Two primitive operations, namely set and get,
are provided. The class allows the deep copy and deep compare operations.
It implements the Comparable interface which compares the lexicographical
ordering of two String arrays. The toString method returns the first
string in the array.
| Constructor Summary | |
Strings(int size)
Construct an array of values of the specified size. |
|
Strings(java.lang.String[] parameters)
Construct an object as a wrapper of the specified array of values. |
|
| Method Summary | |
java.lang.Object |
clone()
Create a deep copy of this object. |
int |
compareTo(java.lang.Object obj)
Compare this object with the specified object for order. |
boolean |
equals(java.lang.Object obj)
Compare this object with another vector of values and return true if they coinside. |
java.lang.String |
get(int index)
Return the value of the specified index. |
java.lang.String |
set(int index,
java.lang.String value)
Set a value of the specified index and return it. |
int |
size()
Return a length of the array. |
java.lang.String |
toString()
Return a value of 0th index. |
java.lang.String[] |
values()
Return the array of values wrapped by this object. |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public Strings(int size)
public Strings(java.lang.String[] parameters)
| Method Detail |
public final int size()
public final java.lang.String[] values()
public final java.lang.String get(int index)
public final java.lang.String set(int index,
java.lang.String value)
public java.lang.Object clone()
public boolean equals(java.lang.Object obj)
public int compareTo(java.lang.Object obj)
public java.lang.String toString()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||