org.apache.mahout.math.list.adapter
Class FloatListAdapter

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<java.lang.Float>
          extended by org.apache.mahout.math.list.adapter.FloatListAdapter
All Implemented Interfaces:
java.lang.Iterable<java.lang.Float>, java.util.Collection<java.lang.Float>, java.util.List<java.lang.Float>

Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.

@Deprecated
public class FloatListAdapter
extends java.util.AbstractList<java.lang.Float>


Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
FloatListAdapter(AbstractFloatList content)
          Deprecated. Constructs a list backed by the specified content list.
 
Method Summary
 void add(int index, java.lang.Float element)
          Deprecated. Inserts the specified element at the specified position in this list (optional operation).
 java.lang.Float get(int index)
          Deprecated. Returns the element at the specified position in this list.
protected static java.lang.Object object(float element)
          Deprecated. Transforms an element of a primitive data type to an object.
 java.lang.Float remove(int index)
          Deprecated. Removes the element at the specified position in this list (optional operation).
 java.lang.Float set(int index, java.lang.Float element)
          Deprecated. Replaces the element at the specified position in this list with the specified element (optional operation).
 int size()
          Deprecated. Returns the number of elements in this list.
 
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.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

FloatListAdapter

public FloatListAdapter(AbstractFloatList content)
Deprecated. 
Constructs a list backed by the specified content list.

Method Detail

add

public void add(int index,
                java.lang.Float element)
Deprecated. 
Inserts the specified element at the specified position in this list (optional operation). Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).

Specified by:
add in interface java.util.List<java.lang.Float>
Overrides:
add in class java.util.AbstractList<java.lang.Float>
Parameters:
index - index at which the specified element is to be inserted.
element - element to be inserted.
Throws:
java.lang.ClassCastException - if the class of the specified element prevents it from being added to this list.
java.lang.IllegalArgumentException - if some aspect of the specified element prevents it from being added to this list.
java.lang.IndexOutOfBoundsException - index is out of range (index < 0 || index > size()).

get

public java.lang.Float get(int index)
Deprecated. 
Returns the element at the specified position in this list.

Specified by:
get in interface java.util.List<java.lang.Float>
Specified by:
get in class java.util.AbstractList<java.lang.Float>
Parameters:
index - index of element to return.
Returns:
the element at the specified position in this list.
Throws:
java.lang.IndexOutOfBoundsException - if the given index is out of range (index < 0 || index >= size()).

object

protected static java.lang.Object object(float element)
Deprecated. 
Transforms an element of a primitive data type to an object.


remove

public java.lang.Float remove(int index)
Deprecated. 
Removes the element at the specified position in this list (optional operation). Shifts any subsequent elements to the left (subtracts one from their indices). Returns the element that was removed from the list.

Specified by:
remove in interface java.util.List<java.lang.Float>
Overrides:
remove in class java.util.AbstractList<java.lang.Float>
Parameters:
index - the index of the element to remove.
Returns:
the element previously at the specified position.
Throws:
java.lang.IndexOutOfBoundsException - if the specified index is out of range (index < 0 || index >= size()).

set

public java.lang.Float set(int index,
                           java.lang.Float element)
Deprecated. 
Replaces the element at the specified position in this list with the specified element (optional operation).

Specified by:
set in interface java.util.List<java.lang.Float>
Overrides:
set in class java.util.AbstractList<java.lang.Float>
Parameters:
index - index of element to replace.
element - element to be stored at the specified position.
Returns:
the element previously at the specified position.
Throws:
java.lang.ClassCastException - if the class of the specified element prevents it from being added to this list.
java.lang.IllegalArgumentException - if some aspect of the specified element prevents it from being added to this list.
java.lang.IndexOutOfBoundsException - if the specified index is out of range (index < 0 || index >= size()).

size

public int size()
Deprecated. 
Returns the number of elements in this list.

Specified by:
size in interface java.util.Collection<java.lang.Float>
Specified by:
size in interface java.util.List<java.lang.Float>
Specified by:
size in class java.util.AbstractCollection<java.lang.Float>
Returns:
the number of elements in this list.


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.