summaryrefslogtreecommitdiff
path: root/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/util/StringList.java
diff options
context:
space:
mode:
Diffstat (limited to 'repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/util/StringList.java')
-rw-r--r--repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/util/StringList.java44
1 files changed, 44 insertions, 0 deletions
diff --git a/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/util/StringList.java b/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/util/StringList.java
new file mode 100644
index 00000000..b73cc757
--- /dev/null
+++ b/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/util/StringList.java
@@ -0,0 +1,44 @@
+/* GENERATED SOURCE. DO NOT MODIFY. */
+package com.android.internal.org.bouncycastle.util;
+
+/**
+ * An interface defining a list of strings.
+ * @hide This class is not part of the Android public SDK API
+ */
+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();
+
+ /**
+ * Return a section of the contents of the list. If the list is too short the array is filled with nulls.
+ *
+ * @param from the initial index of the range to be copied, inclusive
+ * @param to the final index of the range to be copied, exclusive.
+ * @return an array of length to - from
+ */
+ String[] toStringArray(int from, int to);
+}