Class BoxedMutableIntList

  • All Implemented Interfaces:
    java.lang.Cloneable, java.lang.Iterable<java.lang.Integer>, java.util.Collection<java.lang.Integer>, java.util.List<java.lang.Integer>, java.util.RandomAccess, MutableCollection<java.lang.Integer>, InternalIterable<java.lang.Integer>, ListIterable<java.lang.Integer>, MutableList<java.lang.Integer>, OrderedIterable<java.lang.Integer>, ReversibleIterable<java.lang.Integer>, RichIterable<java.lang.Integer>

    public class BoxedMutableIntList
    extends AbstractMutableList<java.lang.Integer>
    implements MutableList<java.lang.Integer>, java.util.RandomAccess
    A boxed view of a MutableIntList. This is for scenarios where optimization is not a consideration and therefore no further methods will be optimized.

    This file was automatically generated from template file boxedPrimitiveList.stg.

    Since:
    12.0
    • Constructor Detail

      • BoxedMutableIntList

        public BoxedMutableIntList​(MutableIntList delegate)
    • Method Detail

      • size

        public int size()
        Description copied from interface: RichIterable
        Returns the number of items in this iterable.
        Specified by:
        size in interface java.util.Collection<java.lang.Integer>
        Specified by:
        size in interface java.util.List<java.lang.Integer>
        Specified by:
        size in interface RichIterable<java.lang.Integer>
      • add

        public boolean add​(java.lang.Integer item)
        Specified by:
        add in interface java.util.Collection<java.lang.Integer>
        Specified by:
        add in interface java.util.List<java.lang.Integer>
        Overrides:
        add in class AbstractMutableCollection<java.lang.Integer>
      • addAll

        public boolean addAll​(int index,
                              java.util.Collection<? extends java.lang.Integer> c)
        Specified by:
        addAll in interface java.util.List<java.lang.Integer>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<java.lang.Integer>
        Specified by:
        clear in interface java.util.List<java.lang.Integer>
        Overrides:
        clear in class AbstractMutableList<java.lang.Integer>
      • get

        public java.lang.Integer get​(int index)
        Description copied from interface: ListIterable
        Returns the item at the specified position in this list iterable.
        Specified by:
        get in interface java.util.List<java.lang.Integer>
        Specified by:
        get in interface ListIterable<java.lang.Integer>
      • set

        public java.lang.Integer set​(int index,
                                     java.lang.Integer element)
        Specified by:
        set in interface java.util.List<java.lang.Integer>
      • add

        public void add​(int index,
                        java.lang.Integer element)
        Specified by:
        add in interface java.util.List<java.lang.Integer>
      • remove

        public java.lang.Integer remove​(int index)
        Specified by:
        remove in interface java.util.List<java.lang.Integer>
      • indexOf

        public int indexOf​(java.lang.Object o)
        Description copied from interface: OrderedIterable
        Returns the index of the first occurrence of the specified item in this iterable, or -1 if this iterable does not contain the item.
        Specified by:
        indexOf in interface java.util.List<java.lang.Integer>
        Specified by:
        indexOf in interface MutableList<java.lang.Integer>
        Specified by:
        indexOf in interface OrderedIterable<java.lang.Integer>
        Overrides:
        indexOf in class AbstractMutableList<java.lang.Integer>
        See Also:
        List.indexOf(Object)
      • lastIndexOf

        public int lastIndexOf​(java.lang.Object o)
        Description copied from interface: ListIterable
        Returns the index of the last occurrence of the specified item in this list, or -1 if this list does not contain the item.
        Specified by:
        lastIndexOf in interface java.util.List<java.lang.Integer>
        Specified by:
        lastIndexOf in interface ListIterable<java.lang.Integer>
        Overrides:
        lastIndexOf in class AbstractMutableList<java.lang.Integer>
      • subList

        public MutableList<java.lang.Integer> subList​(int fromIndex,
                                                      int toIndex)
        Specified by:
        subList in interface java.util.List<java.lang.Integer>
        Specified by:
        subList in interface ListIterable<java.lang.Integer>
        Specified by:
        subList in interface MutableList<java.lang.Integer>
        Overrides:
        subList in class AbstractMutableList<java.lang.Integer>
        See Also:
        List.subList(int, int)