Package gnu.trove.decorator
Class TFloatListDecorator
- All Implemented Interfaces:
Externalizable
,Serializable
,Cloneable
,Iterable<Float>
,Collection<Float>
,List<Float>
public class TFloatListDecorator
extends AbstractList<Float>
implements List<Float>, Externalizable, Cloneable
Wrapper class to make a TFloatList conform to the java.util.List API.
This class simply decorates an underlying TFloatList and translates the Object-based
APIs into their Trove primitive analogs.
Note that wrapping and unwrapping primitive values is extremely inefficient. If
possible, users of this class should override the appropriate methods in this class
and use a table of canonical values.
- See Also:
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorsConstructorDescriptionFOR EXTERNALIZATION ONLY!!Creates a wrapper that decorates the specified primitive map. -
Method Summary
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, replaceAll, retainAll, sort, spliterator, subList, toArray, toArray
-
Field Details
-
list
the wrapped primitive list
-
-
Constructor Details
-
TFloatListDecorator
public TFloatListDecorator()FOR EXTERNALIZATION ONLY!! -
TFloatListDecorator
Creates a wrapper that decorates the specified primitive map.- Parameters:
list
- the TFloatList to wrap.
-
-
Method Details
-
getList
Returns a reference to the list wrapped by this decorator.- Returns:
- the wrapped TFloatList instance.
-
size
public int size()- Specified by:
size
in interfaceCollection<Float>
- Specified by:
size
in interfaceList<Float>
- Specified by:
size
in classAbstractCollection<Float>
-
get
-
set
-
add
-
remove
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-