Class IIntList.IIntListableFromCollection

  • All Implemented Interfaces:
    IIntListable
    Enclosing class:
    IIntList

    protected static class IIntList.IIntListableFromCollection
    extends java.lang.Object
    implements IIntListable
    Wrapper to treat a Collection as IIntListable.

    Note that the implementation relies on the fact that the elements are only accessed sequentially.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.util.Iterator<java.lang.Integer> iter  
      (package private) int size  
    • Constructor Summary

      Constructors 
      Constructor Description
      IIntListableFromCollection​(java.util.Collection<java.lang.Integer> coll)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int get​(int index)  
      int size()  
      • Methods inherited from class java.lang.Object

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

      • iter

        java.util.Iterator<java.lang.Integer> iter
      • size

        int size
    • Constructor Detail

      • IIntListableFromCollection

        IIntListableFromCollection​(java.util.Collection<java.lang.Integer> coll)