|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gephi.data.attributes.type.AbstractList<java.lang.String>
org.gephi.data.attributes.type.StringList
public final class StringList
Complex type that define a list of String items. Can be created from a String array, from a char array or from single string using either given or default separators.
String list is useful when, for a particular type, the number of string that define an element is not known by advance.
AttributeType
Field Summary |
---|
Fields inherited from class org.gephi.data.attributes.type.AbstractList |
---|
DEFAULT_SEPARATOR, list |
Constructor Summary | |
---|---|
StringList(char[] list)
Create a new string from a char array. |
|
StringList(java.lang.String input)
Create a new string list with items found in the given value. |
|
StringList(java.lang.String[] list)
Create a new string list with the given items. |
|
StringList(java.lang.String input,
java.lang.String separator)
Create a new string list with items found using given separators. |
Method Summary | |
---|---|
java.lang.String |
getString(int index)
Returns the item at the specified index . |
Methods inherited from class org.gephi.data.attributes.type.AbstractList |
---|
contains, equals, getItem, hashCode, size, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StringList(char[] list)
list
- the listpublic StringList(java.lang.String[] list)
list
- the list of string itemspublic StringList(java.lang.String input)
,|;
are used to split the string in a list.
input
- a string with default separatorspublic StringList(java.lang.String input, java.lang.String separator)
input
- a string with separators defined in separator
separator
- the separators chars that are to be used to split
value
Method Detail |
---|
public java.lang.String getString(int index)
index
. May return
null
if index
is out of range.
index
- the position in the string list
null
|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |