Class IList.IListableFromMult<E>

java.lang.Object
org.magicwerk.brownies.collections.IList.IListableFromMult<E>
All Implemented Interfaces:
IListable<E>
Enclosing class:
IList<E>

protected static class IList.IListableFromMult<E> extends Object implements IListable<E>
Wrapper to treat a repeated element as IListable.
  • Field Details

    • len

      int len
    • elem

      E elem
  • Constructor Details

    • IListableFromMult

      IListableFromMult(int len, E elem)
  • Method Details

    • size

      public int size()
      Description copied from interface: IListable
      Return size of list
      Specified by:
      size in interface IListable<E>
    • get

      public E get(int index)
      Description copied from interface: IListable
      Return element at specified position
      Specified by:
      get in interface IListable<E>