@Test public void testFillStringArray() { assertEquals(asList("0", "1"), asList(fillArray(new StringArray(jcas, 2), asList("0", "1")).toArray())); assertEquals(asList("0", "1"), asList(fillArray(new StringArray(jcas, 2), "0", "1").toArray())); assertEquals(asList("0", "1"), asList(fillArray(new StringArray(jcas, 2), asList("0", "1")).toArray())); assertEquals(asList("0", "1"), asList(fillArray(new StringArray(jcas, 2), "0", "1").toArray())); }
public static <T extends FeatureStructure> FSArray<T> fillArray(FSArray<T> aArray, Iterable<? extends T> aValues) { return (FSArray<T>) fillArrayFS(aArray, aValues); }
FSCollectionFactory { public static <T extends FeatureStructure> FSArray<T> fillArray(FSArray<T> aArray, Iterable<? extends T> aValues) { return (FSArray<T>) fillArrayFS(aArray, aValues); } }
FSCollectionFactory { public static <T extends FeatureStructure> FSArray<T> fillArray(FSArray<T> aArray, Iterable<? extends T> aValues) { return (FSArray<T>) fillArrayFS(aArray, aValues); } private  FSCollectionFactory(); }
FSCollectionFactory { public static <T extends FeatureStructure> FSArray<T> fillArray(FSArray<T> aArray, Iterable<? extends T> aValues) { return (FSArray<T>) fillArrayFS(aArray, aValues); } private  FSCollectionFactory(); @Deprecated @SuppressWarnings({ "unchecked", "rawtypes" }) static List<FeatureStructure> create(CAS cas, Type type); static Collection<T> create(FSIterator<T> aIterator); @Deprecated static List<T> create(AnnotationIndex<T> aIndex); static List<T> create(ArrayFS<T> aArray); @SuppressWarnings({ "unchecked", "rawtypes" }) static List<T> create(ArrayFS aArray, Class<T> aType); static List<T> create(ArrayFS<T> aArray, Type aType); static ArrayFS<T> createArrayFS(CAS aCas,
          Collection<T> aCollection); static ArrayFS<T> createArrayFS(CAS aCas, T... aArray); static FSArray<T> createFSArray(JCas aJCas,
          Collection<T> aCollection); static FSArray<T> createFSArray(JCas aJCas, T... aArray); static BooleanArrayFS createBooleanArrayFS(CAS aCas, Collection<Boolean> aCollection); static BooleanArrayFS createBooleanArrayFS(CAS aCas, boolean... aArray); static BooleanArray createBooleanArray(JCas aJCas, Collection<Boolean> aCollection); static BooleanArray createBooleanArray(JCas aJCas, boolean... aArray); static ByteArrayFS createByteArrayFS(CAS aCas, Collection<Byte> aCollection); static ByteArrayFS createByteArrayFS(CAS aCas, byte... aArray); static ByteArray createByteArray(JCas aJCas, Collection<Byte> aCollection); static ByteArray createByteArray(JCas aJCas, byte... aArray); static DoubleArrayFS createDoubleArrayFS(CAS aCas, Collection<Double> aCollection); static DoubleArrayFS createDoubleArrayFS(CAS aCas, double... aArray); static DoubleArray createDoubleArray(JCas aJCas, Collection<Double> aCollection); static DoubleArray createDoubleArray(JCas aJCas, double... aArray); static FloatArrayFS createFloatArrayFS(CAS aCas, Collection<Float> aCollection); static FloatArrayFS createFloatArrayFS(CAS aCas, float... aArray); static FloatArray createFloatArray(JCas aJCas, Collection<Float> aCollection); static FloatArray createFloatArray(JCas aJCas, float... aArray); static IntArrayFS createIntArrayFS(CAS aCas, Collection<Integer> aCollection); static IntArrayFS createIntArrayFS(CAS aCas, int... aArray); static IntegerArray createIntArray(JCas aJCas, Collection<Integer> aCollection); static IntegerArray createIntArray(JCas aJCas, int... aArray); static LongArrayFS createLongArrayFS(CAS aCas, Collection<Long> aCollection); static LongArrayFS createLongArrayFS(CAS aCas, long... aArray); static LongArray createLongArray(JCas aJCas, Collection<Long> aCollection); static LongArray createLongArray(JCas aJCas, long... aArray); static ShortArrayFS createShortArrayFS(CAS aCas, Collection<Short> aCollection); static ShortArrayFS createShortArrayFS(CAS aCas, short... aArray); static ShortArray createShortArray(JCas aJCas, Collection<Short> aCollection); static ShortArray createShortArray(JCas aJCas, short... aArray); static StringArrayFS createStringArrayFS(CAS aCas, Collection<String> aCollection); static StringArrayFS createStringArrayFS(CAS aCas, String... aArray); static StringArray createStringArray(JCas aJCas, Collection<String> aCollection); static StringArray createStringArray(JCas aJCas, String... aArray); static FSArray<T> fillArray(FSArray<T> aArray,
          Iterable<? extends T> aValues); static FSArray<T> fillArray(FSArray<T> aArray,
          FeatureStructure... aValues); static ArrayFS<T> fillArrayFS(ArrayFS<T> aArrayFs,
          Iterable<? extends T> aCollection); static ArrayFS<T> fillArrayFS(ArrayFS<T> aArrayFs,
          FeatureStructure... aArray); static BooleanArray fillArray(BooleanArray aArray, Iterable<Boolean> aValues); static BooleanArray fillArray(BooleanArray aArray, boolean... aValues); static BooleanArrayFS fillArrayFS(BooleanArrayFS aArrayFs, Iterable<Boolean> aValues); static BooleanArrayFS fillArrayFS(BooleanArrayFS aArrayFs, boolean... aValues); static ByteArray fillArray(ByteArray aArray, Iterable<Byte> aValues); static ByteArray fillArray(ByteArray aArray, byte... aValues); static ByteArrayFS fillArrayFS(ByteArrayFS aArrayFs, Iterable<Byte> aValues); static ByteArrayFS fillArrayFS(ByteArrayFS aArrayFs, byte... aValues); static DoubleArray fillArray(DoubleArray aArray, Iterable<Double> aValues); static DoubleArray fillArray(DoubleArray aArray, double... aValues); static DoubleArrayFS fillArrayFS(DoubleArrayFS aArrayFs, Iterable<Double> aValues); static DoubleArrayFS fillArrayFS(DoubleArrayFS aArrayFs, double... aValues); static FloatArray fillArray(FloatArray aArray, Iterable<Float> aValues); static FloatArray fillArray(FloatArray aArray, float... aValues); static FloatArrayFS fillArrayFS(FloatArrayFS aArrayFs, Iterable<Float> aValues); static FloatArrayFS fillArrayFS(FloatArrayFS aArrayFs, float... aValues); static IntegerArray fillArray(IntegerArray aArray, Iterable<Integer> aValues); static IntegerArray fillArray(IntegerArray aArray, int... aValues); static IntArrayFS fillArrayFS(IntArrayFS aArrayFs, Iterable<Integer> aValues); static IntArrayFS fillArrayFS(IntArrayFS aArrayFs, int... aValues); static LongArray fillArray(LongArray aArray, Iterable<Long> aValues); static LongArray fillArray(LongArray aArray, long... aValues); static LongArrayFS fillArrayFS(LongArrayFS aArrayFs, Iterable<Long> aValues); static LongArrayFS fillArrayFS(LongArrayFS aArrayFs, long... aValues); static ShortArray fillArray(ShortArray aArray, Iterable<Short> aValues); static ShortArray fillArray(ShortArray aArray, short... aValues); static ShortArrayFS fillArrayFS(ShortArrayFS aArrayFs, Iterable<Short> aValues); static ShortArrayFS fillArrayFS(ShortArrayFS aArrayFs, short... aValues); static StringArray fillArray(StringArray aArray, Iterable<String> aValues); static StringArray fillArray(StringArray aArray, String... aValues); static StringArrayFS fillArrayFS(StringArrayFS aArrayFs, Iterable<String> aValues); static StringArrayFS fillArrayFS(StringArrayFS aArrayFs, String... aValues); static Collection<T> create(FSList<T> aList); static Collection<T> create(FSList<T> aList, Class<? extends T> aType); static List<T> create(FSList<T> aList, Type type); static List<String> create(StringList aList); static List<Integer> create(IntegerList aList); static List<Float> create(FloatList aList); static FSList<T> createFSList(JCas aJCas, Collection<T> aCollection); static FSList<T> createFSList(CAS aCas, T... aValues); static FSList<T> createFSList(CAS aCas, Collection<T> aValues); static FloatList createFloatList(JCas aJCas, float... aValues); static T createFloatList(CAS aCas, float... aValues); static T createFloatList(CAS aCas, Collection<Float> aValues); static FloatList createFloatList(JCas aJCas, Collection<Float> aCollection); static IntegerList createIntegerList(JCas aJCas, int... aValues); static T createIntegerList(CAS aCas, int... aValues); static T createIntegerList(CAS aCas, Collection<Integer> aValues); static IntegerList createIntegerList(JCas aJCas, Collection<Integer> aCollection); static StringList createStringList(JCas aJCas, String... aValues); static T createStringList(CAS aCas, String... aValues); static T createStringList(CAS aCas, Collection<String> aValues); static StringList createStringList(JCas aJCas, Collection<String> aCollection); }
FSCollectionFactory { public static <T extends FeatureStructure> FSArray<T> fillArray(FSArray<T> aArray, Iterable<? extends T> aValues) { return (FSArray<T>) fillArrayFS(aArray, aValues); } private  FSCollectionFactory(); @Deprecated @SuppressWarnings({ "unchecked", "rawtypes" }) static List<FeatureStructure> create(CAS cas, Type type); static Collection<T> create(FSIterator<T> aIterator); @Deprecated static List<T> create(AnnotationIndex<T> aIndex); static List<T> create(ArrayFS<T> aArray); @SuppressWarnings({ "unchecked", "rawtypes" }) static List<T> create(ArrayFS aArray, Class<T> aType); static List<T> create(ArrayFS<T> aArray, Type aType); static ArrayFS<T> createArrayFS(CAS aCas,
          Collection<T> aCollection); static ArrayFS<T> createArrayFS(CAS aCas, T... aArray); static FSArray<T> createFSArray(JCas aJCas,
          Collection<T> aCollection); static FSArray<T> createFSArray(JCas aJCas, T... aArray); static BooleanArrayFS createBooleanArrayFS(CAS aCas, Collection<Boolean> aCollection); static BooleanArrayFS createBooleanArrayFS(CAS aCas, boolean... aArray); static BooleanArray createBooleanArray(JCas aJCas, Collection<Boolean> aCollection); static BooleanArray createBooleanArray(JCas aJCas, boolean... aArray); static ByteArrayFS createByteArrayFS(CAS aCas, Collection<Byte> aCollection); static ByteArrayFS createByteArrayFS(CAS aCas, byte... aArray); static ByteArray createByteArray(JCas aJCas, Collection<Byte> aCollection); static ByteArray createByteArray(JCas aJCas, byte... aArray); static DoubleArrayFS createDoubleArrayFS(CAS aCas, Collection<Double> aCollection); static DoubleArrayFS createDoubleArrayFS(CAS aCas, double... aArray); static DoubleArray createDoubleArray(JCas aJCas, Collection<Double> aCollection); static DoubleArray createDoubleArray(JCas aJCas, double... aArray); static FloatArrayFS createFloatArrayFS(CAS aCas, Collection<Float> aCollection); static FloatArrayFS createFloatArrayFS(CAS aCas, float... aArray); static FloatArray createFloatArray(JCas aJCas, Collection<Float> aCollection); static FloatArray createFloatArray(JCas aJCas, float... aArray); static IntArrayFS createIntArrayFS(CAS aCas, Collection<Integer> aCollection); static IntArrayFS createIntArrayFS(CAS aCas, int... aArray); static IntegerArray createIntArray(JCas aJCas, Collection<Integer> aCollection); static IntegerArray createIntArray(JCas aJCas, int... aArray); static LongArrayFS createLongArrayFS(CAS aCas, Collection<Long> aCollection); static LongArrayFS createLongArrayFS(CAS aCas, long... aArray); static LongArray createLongArray(JCas aJCas, Collection<Long> aCollection); static LongArray createLongArray(JCas aJCas, long... aArray); static ShortArrayFS createShortArrayFS(CAS aCas, Collection<Short> aCollection); static ShortArrayFS createShortArrayFS(CAS aCas, short... aArray); static ShortArray createShortArray(JCas aJCas, Collection<Short> aCollection); static ShortArray createShortArray(JCas aJCas, short... aArray); static StringArrayFS createStringArrayFS(CAS aCas, Collection<String> aCollection); static StringArrayFS createStringArrayFS(CAS aCas, String... aArray); static StringArray createStringArray(JCas aJCas, Collection<String> aCollection); static StringArray createStringArray(JCas aJCas, String... aArray); static FSArray<T> fillArray(FSArray<T> aArray,
          Iterable<? extends T> aValues); static FSArray<T> fillArray(FSArray<T> aArray,
          FeatureStructure... aValues); static ArrayFS<T> fillArrayFS(ArrayFS<T> aArrayFs,
          Iterable<? extends T> aCollection); static ArrayFS<T> fillArrayFS(ArrayFS<T> aArrayFs,
          FeatureStructure... aArray); static BooleanArray fillArray(BooleanArray aArray, Iterable<Boolean> aValues); static BooleanArray fillArray(BooleanArray aArray, boolean... aValues); static BooleanArrayFS fillArrayFS(BooleanArrayFS aArrayFs, Iterable<Boolean> aValues); static BooleanArrayFS fillArrayFS(BooleanArrayFS aArrayFs, boolean... aValues); static ByteArray fillArray(ByteArray aArray, Iterable<Byte> aValues); static ByteArray fillArray(ByteArray aArray, byte... aValues); static ByteArrayFS fillArrayFS(ByteArrayFS aArrayFs, Iterable<Byte> aValues); static ByteArrayFS fillArrayFS(ByteArrayFS aArrayFs, byte... aValues); static DoubleArray fillArray(DoubleArray aArray, Iterable<Double> aValues); static DoubleArray fillArray(DoubleArray aArray, double... aValues); static DoubleArrayFS fillArrayFS(DoubleArrayFS aArrayFs, Iterable<Double> aValues); static DoubleArrayFS fillArrayFS(DoubleArrayFS aArrayFs, double... aValues); static FloatArray fillArray(FloatArray aArray, Iterable<Float> aValues); static FloatArray fillArray(FloatArray aArray, float... aValues); static FloatArrayFS fillArrayFS(FloatArrayFS aArrayFs, Iterable<Float> aValues); static FloatArrayFS fillArrayFS(FloatArrayFS aArrayFs, float... aValues); static IntegerArray fillArray(IntegerArray aArray, Iterable<Integer> aValues); static IntegerArray fillArray(IntegerArray aArray, int... aValues); static IntArrayFS fillArrayFS(IntArrayFS aArrayFs, Iterable<Integer> aValues); static IntArrayFS fillArrayFS(IntArrayFS aArrayFs, int... aValues); static LongArray fillArray(LongArray aArray, Iterable<Long> aValues); static LongArray fillArray(LongArray aArray, long... aValues); static LongArrayFS fillArrayFS(LongArrayFS aArrayFs, Iterable<Long> aValues); static LongArrayFS fillArrayFS(LongArrayFS aArrayFs, long... aValues); static ShortArray fillArray(ShortArray aArray, Iterable<Short> aValues); static ShortArray fillArray(ShortArray aArray, short... aValues); static ShortArrayFS fillArrayFS(ShortArrayFS aArrayFs, Iterable<Short> aValues); static ShortArrayFS fillArrayFS(ShortArrayFS aArrayFs, short... aValues); static StringArray fillArray(StringArray aArray, Iterable<String> aValues); static StringArray fillArray(StringArray aArray, String... aValues); static StringArrayFS fillArrayFS(StringArrayFS aArrayFs, Iterable<String> aValues); static StringArrayFS fillArrayFS(StringArrayFS aArrayFs, String... aValues); static Collection<T> create(FSList<T> aList); static Collection<T> create(FSList<T> aList, Class<? extends T> aType); static List<T> create(FSList<T> aList, Type type); static List<String> create(StringList aList); static List<Integer> create(IntegerList aList); static List<Float> create(FloatList aList); static FSList<T> createFSList(JCas aJCas, Collection<T> aCollection); static FSList<T> createFSList(CAS aCas, T... aValues); static FSList<T> createFSList(CAS aCas, Collection<T> aValues); static FloatList createFloatList(JCas aJCas, float... aValues); static T createFloatList(CAS aCas, float... aValues); static T createFloatList(CAS aCas, Collection<Float> aValues); static FloatList createFloatList(JCas aJCas, Collection<Float> aCollection); static IntegerList createIntegerList(JCas aJCas, int... aValues); static T createIntegerList(CAS aCas, int... aValues); static T createIntegerList(CAS aCas, Collection<Integer> aValues); static IntegerList createIntegerList(JCas aJCas, Collection<Integer> aCollection); static StringList createStringList(JCas aJCas, String... aValues); static T createStringList(CAS aCas, String... aValues); static T createStringList(CAS aCas, Collection<String> aValues); static StringList createStringList(JCas aJCas, Collection<String> aCollection);  }