Package ai.djl.basicdataset.tabular
Class ListFeatures
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<java.lang.String>
-
- ai.djl.basicdataset.tabular.ListFeatures
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Iterable<java.lang.String>,java.util.Collection<java.lang.String>,java.util.List<java.lang.String>,java.util.RandomAccess
public class ListFeatures extends java.util.ArrayList<java.lang.String>An extension of theArrayListfor use in theTabularTranslator.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListFeatures()Constructs aListFeaturesinstance.ListFeatures(int initialCapacity)Constructs aListFeaturesinstance.ListFeatures(java.util.Collection<? extends java.lang.String> c)Constructs aListFeaturesinstance.ListFeatures(java.util.List<java.lang.String> source)Constructs aListFeaturesinstance from a source list.
-
Method Summary
-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
-
-
-
Constructor Detail
-
ListFeatures
public ListFeatures()
Constructs aListFeaturesinstance.- See Also:
ArrayList()
-
ListFeatures
public ListFeatures(int initialCapacity)
Constructs aListFeaturesinstance.- Parameters:
initialCapacity- the initial capacity of the list- Throws:
java.lang.IllegalArgumentException- if the specified initial capacity is negative- See Also:
ArrayList(int)
-
ListFeatures
public ListFeatures(java.util.List<java.lang.String> source)
Constructs aListFeaturesinstance from a source list.- Parameters:
source- the source list
-
ListFeatures
public ListFeatures(java.util.Collection<? extends java.lang.String> c)
Constructs aListFeaturesinstance.- Parameters:
c- the collection whose elements are to be placed into this list- Throws:
java.lang.NullPointerException- if the specified collection is null- See Also:
ArrayList(Collection)
-
-