Class IList.IListableFromList<E>

  • All Implemented Interfaces:
    IListable<E>
    Enclosing class:
    IList<E>

    protected static class IList.IListableFromList<E>
    extends java.lang.Object
    implements IListable<E>
    Wrapper to treat a List as IListable.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.util.List<? extends E> list  
    • Constructor Summary

      Constructors 
      Constructor Description
      IListableFromList​(java.util.List<? extends E> list)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      E get​(int index)
      Return element at specified position
      int size()
      Return size of list
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • list

        java.util.List<? extends E> list
    • Constructor Detail

      • IListableFromList

        IListableFromList​(java.util.List<? extends E> list)
    • Method Detail

      • 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>