Package org.bouncycastle.util
Interface StringList
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
add(java.lang.String s)
Add a String to the list.java.lang.String
get(int index)
Get the string at index index.int
size()
java.lang.String[]
toStringArray()
Return the contents of the list as an array.java.lang.String[]
toStringArray(int from, int to)
Return a section of the contents of the list.
-
-
-
Method Detail
-
add
boolean add(java.lang.String s)
Add a String to the list.- Parameters:
s
- the String to add.- Returns:
- true
-
get
java.lang.String get(int index)
Get the string at index index.- Parameters:
index
- the index position of the String of interest.- Returns:
- the String at position index.
-
size
int size()
-
toStringArray
java.lang.String[] toStringArray()
Return the contents of the list as an array.- Returns:
- an array of String.
-
toStringArray
java.lang.String[] toStringArray(int from, int to)
Return a section of the contents of the list. If the list is too short the array is filled with nulls.- Parameters:
from
- the initial index of the range to be copied, inclusiveto
- the final index of the range to be copied, exclusive.- Returns:
- an array of length to - from
-
-