Class BoxedMutableByteList

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

    public class BoxedMutableByteList
    extends AbstractMutableList<java.lang.Byte>
    implements MutableList<java.lang.Byte>, java.util.RandomAccess
    A boxed view of a MutableByteList. 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

      • BoxedMutableByteList

        public BoxedMutableByteList​(MutableByteList 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.Byte>
        Specified by:
        size in interface java.util.List<java.lang.Byte>
        Specified by:
        size in interface RichIterable<java.lang.Byte>
      • add

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

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

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

        public java.lang.Byte 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.Byte>
        Specified by:
        get in interface ListIterable<java.lang.Byte>
      • set

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

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

        public java.lang.Byte remove​(int index)
        Specified by:
        remove in interface java.util.List<java.lang.Byte>
      • 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.Byte>
        Specified by:
        indexOf in interface MutableList<java.lang.Byte>
        Specified by:
        indexOf in interface OrderedIterable<java.lang.Byte>
        Overrides:
        indexOf in class AbstractMutableList<java.lang.Byte>
        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.Byte>
        Specified by:
        lastIndexOf in interface ListIterable<java.lang.Byte>
        Overrides:
        lastIndexOf in class AbstractMutableList<java.lang.Byte>
      • subList

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