Class ListShort

    • Constructor Summary

      Constructors 
      Constructor Description
      ListShort()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object obj)  
      byte getByte​(int index)
      Returns the element at the specified position in this list casted to a byte.
      double getDouble​(int index)
      Returns the element at the specified position in this list casted to a double.
      float getFloat​(int index)
      Returns the element at the specified position in this list casted to a float.
      int getInt​(int index)
      Returns the element at the specified position in this list casted to an int.
      long getLong​(int index)
      Returns the element at the specified position in this list casted to a long.
      int hashCode()  
      IteratorShort iterator()
      Returns an iterator over the elements of the collection.
      void setAll​(int index, ListNumber list)
      Changes the elements starting at the specified position, taking them based on the internal representation.
      void setByte​(int index, byte value)
      Changes the element at the specified position, casting to the internal representation.
      void setDouble​(int index, double value)
      Changes the element at the specified position, casting to the internal representation.
      void setFloat​(int index, float value)
      Changes the element at the specified position, casting to the internal representation.
      void setInt​(int index, int value)
      Changes the element at the specified position, casting to the internal representation.
      void setLong​(int index, long value)
      Changes the element at the specified position, casting to the internal representation.
      void setShort​(int index, short value)
      Changes the element at the specified position, casting to the internal representation.
      ListShort subList​(int fromIndex, int toIndex)
      Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive.
      String toString()  
    • Constructor Detail

      • ListShort

        public ListShort()
    • Method Detail

      • getDouble

        public double getDouble​(int index)
        Description copied from interface: ListNumber
        Returns the element at the specified position in this list casted to a double.
        Specified by:
        getDouble in interface ListNumber
        Parameters:
        index - position of the element to return
        Returns:
        the element at the specified position in this list
      • getFloat

        public float getFloat​(int index)
        Description copied from interface: ListNumber
        Returns the element at the specified position in this list casted to a float.
        Specified by:
        getFloat in interface ListNumber
        Parameters:
        index - position of the element to return
        Returns:
        the element at the specified position in this list
      • getLong

        public long getLong​(int index)
        Description copied from interface: ListNumber
        Returns the element at the specified position in this list casted to a long.
        Specified by:
        getLong in interface ListNumber
        Parameters:
        index - position of the element to return
        Returns:
        the element at the specified position in this list
      • getInt

        public int getInt​(int index)
        Description copied from interface: ListNumber
        Returns the element at the specified position in this list casted to an int.
        Specified by:
        getInt in interface ListNumber
        Parameters:
        index - position of the element to return
        Returns:
        the element at the specified position in this list
      • getByte

        public byte getByte​(int index)
        Description copied from interface: ListNumber
        Returns the element at the specified position in this list casted to a byte.
        Specified by:
        getByte in interface ListNumber
        Parameters:
        index - position of the element to return
        Returns:
        the element at the specified position in this list
      • setDouble

        public void setDouble​(int index,
                              double value)
        Description copied from interface: ListNumber
        Changes the element at the specified position, casting to the internal representation.
        Specified by:
        setDouble in interface ListNumber
        Parameters:
        index - position of the element to change
        value - the new value
      • setFloat

        public void setFloat​(int index,
                             float value)
        Description copied from interface: ListNumber
        Changes the element at the specified position, casting to the internal representation.
        Specified by:
        setFloat in interface ListNumber
        Parameters:
        index - position of the element to change
        value - the new value
      • setLong

        public void setLong​(int index,
                            long value)
        Description copied from interface: ListNumber
        Changes the element at the specified position, casting to the internal representation.
        Specified by:
        setLong in interface ListNumber
        Parameters:
        index - position of the element to change
        value - the new value
      • setInt

        public void setInt​(int index,
                           int value)
        Description copied from interface: ListNumber
        Changes the element at the specified position, casting to the internal representation.
        Specified by:
        setInt in interface ListNumber
        Parameters:
        index - position of the element to change
        value - the new value
      • setShort

        public void setShort​(int index,
                             short value)
        Description copied from interface: ListNumber
        Changes the element at the specified position, casting to the internal representation.
        Specified by:
        setShort in interface ListNumber
        Parameters:
        index - position of the element to change
        value - the new value
      • setByte

        public void setByte​(int index,
                            byte value)
        Description copied from interface: ListNumber
        Changes the element at the specified position, casting to the internal representation.
        Specified by:
        setByte in interface ListNumber
        Parameters:
        index - position of the element to change
        value - the new value
      • setAll

        public void setAll​(int index,
                           ListNumber list)
        Description copied from interface: ListNumber
        Changes the elements starting at the specified position, taking them based on the internal representation.
        Specified by:
        setAll in interface ListNumber
        Parameters:
        index - position of the first element to change
        list - the new values
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • subList

        public ListShort subList​(int fromIndex,
                                 int toIndex)
        Description copied from interface: ListNumber
        Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive.
        Specified by:
        subList in interface ListNumber
        Parameters:
        fromIndex - low endpoint (inclusive) of the subList
        toIndex - high endpoint (exclusive) of the subList
        Returns:
        a view of the specified range within this list