Documentation of 'gnu.trove.decorator.TFloatListDecorator' Java class
TFloatListDecorator
gnu.trove.decorator

Class TFloatListDecorator

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<java.lang.Float>, java.util.Collection<java.lang.Float>, java.util.List<java.lang.Float>


    public class TFloatListDecorator
    extends java.util.AbstractList<java.lang.Float>
    implements java.util.List<java.lang.Float>, java.io.Externalizable, java.lang.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:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void add(int index, java.lang.Float value) 
      java.lang.Float get(int index) 
      TFloatList getList()
      Returns a reference to the list wrapped by this decorator.
      void readExternal(java.io.ObjectInput in) 
      java.lang.Float remove(int index) 
      java.lang.Float set(int index, java.lang.Float value) 
      int size() 
      void writeExternal(java.io.ObjectOutput out) 
      • Methods inherited from class java.util.AbstractList

        add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, 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

        getClass, notify, notifyAll, wait, wait, wait
      • 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
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream
      • Methods inherited from interface java.lang.Iterable

        forEach
    • Constructor Detail

      • TFloatListDecorator

        public TFloatListDecorator()
        FOR EXTERNALIZATION ONLY!!
      • TFloatListDecorator

        public TFloatListDecorator(TFloatList list)
        Creates a wrapper that decorates the specified primitive map.
        Parameters:
        list - the TFloatList to wrap.
    • Method Detail

      • getList

        public TFloatList getList()
        Returns a reference to the list wrapped by this decorator.
        Returns:
        the wrapped TFloatList instance.
      • size

        public int size()
        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>
      • get

        public java.lang.Float get(int index)
        Specified by:
        get in interface java.util.List<java.lang.Float>
        Specified by:
        get in class java.util.AbstractList<java.lang.Float>
      • set

        public java.lang.Float set(int index,
                                   java.lang.Float value)
        Specified by:
        set in interface java.util.List<java.lang.Float>
        Overrides:
        set in class java.util.AbstractList<java.lang.Float>
      • add

        public void add(int index,
                        java.lang.Float value)
        Specified by:
        add in interface java.util.List<java.lang.Float>
        Overrides:
        add in class java.util.AbstractList<java.lang.Float>
      • remove

        public java.lang.Float remove(int index)
        Specified by:
        remove in interface java.util.List<java.lang.Float>
        Overrides:
        remove in class java.util.AbstractList<java.lang.Float>
      • readExternal

        public void readExternal(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • writeExternal

        public void writeExternal(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.