Class OrderedSet.IndexedProxy

  • All Implemented Interfaces:
    Indexed<E>
    Enclosing class:
    OrderedSet<E>

    private class OrderedSet.IndexedProxy
    extends java.lang.Object
    implements Indexed<E>
    • Constructor Summary

      Constructors 
      Constructor Description
      IndexedProxy​(boolean allowConcurrentMods)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      E get​(int index)  
      int modificationCount()  
      void removeAt​(int index)  
      void set​(int index, E item)  
      int size()  
      • Methods inherited from class java.lang.Object

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

      • allowConcurrentMods

        private final boolean allowConcurrentMods
    • Constructor Detail

      • IndexedProxy

        public IndexedProxy​(boolean allowConcurrentMods)
    • Method Detail

      • get

        public E get​(int index)
        Specified by:
        get in interface Indexed<E>
      • set

        public void set​(int index,
                        E item)
        Specified by:
        set in interface Indexed<E>
      • removeAt

        public void removeAt​(int index)
        Specified by:
        removeAt in interface Indexed<E>
      • size

        public int size()
        Specified by:
        size in interface Indexed<E>