Top Description Methods
org.bouncycastle.util

public Interface StringList

extends Iterable<String>
Known Direct Implementers
org.bouncycastle.util.Strings.StringListImpl

An interface defining a list of strings.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true
add
(String
the String to add.
s
)

Add a String to the list.

public String

Returns:

the String at position index.
get
(int
the index position of the String of interest.
index
)

Get the string at index index.

public int
size()

public String[]

Returns:

an array of String.
toStringArray
()

Return the contents of the list as an array.

public String[]

Returns:

an array of length to - from
toStringArray
(int
the initial index of the range to be copied, inclusive
from
,
int
the final index of the range to be copied, exclusive.
to
)

Return a section of the contents of the list.

Inherited from org.bouncycastle.util.Iterable:
iterator

Method Detail

addback to summary
public boolean add(String s)

Add a String to the list.

Parameters
s:String

the String to add.

Returns:boolean

true

getback to summary
public String get(int index)

Get the string at index index.

Parameters
index:int

the index position of the String of interest.

Returns:String

the String at position index.

sizeback to summary
public int size()
toStringArrayback to summary
public String[] toStringArray()

Return the contents of the list as an array.

Returns:String[]

an array of String.

toStringArrayback to summary
public 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:int

the initial index of the range to be copied, inclusive

to:int

the final index of the range to be copied, exclusive.

Returns:String[]

an array of length to - from