diff options
Diffstat (limited to 'bcprov/src/main/java/org/bouncycastle/util/StringList.java')
-rw-r--r-- | bcprov/src/main/java/org/bouncycastle/util/StringList.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/bcprov/src/main/java/org/bouncycastle/util/StringList.java b/bcprov/src/main/java/org/bouncycastle/util/StringList.java index e7334427..4eb85141 100644 --- a/bcprov/src/main/java/org/bouncycastle/util/StringList.java +++ b/bcprov/src/main/java/org/bouncycastle/util/StringList.java @@ -1,14 +1,34 @@ package org.bouncycastle.util; +/** + * An interface defining a list of strings. + */ public interface StringList extends Iterable<String> { + /** + * Add a String to the list. + * + * @param s the String to add. + * @return true + */ boolean add(String s); + /** + * Get the string at index index. + * + * @param index the index position of the String of interest. + * @return the String at position index. + */ String get(int index); int size(); + /** + * Return the contents of the list as an array. + * + * @return an array of String. + */ String[] toStringArray(); /** |