Class RexSlot.SelfPopulatingList

  • All Implemented Interfaces:, java.lang.Cloneable, java.lang.Iterable<java.lang.String>, java.util.Collection<java.lang.String>, java.util.List<java.lang.String>, java.util.RandomAccess
    Enclosing class:

    protected static class RexSlot.SelfPopulatingList
    extends java.util.concurrent.CopyOnWriteArrayList<java.lang.String>
    Thread-safe list that populates itself if you make a reference beyond the end of the list. Useful if you are using the same entries repeatedly. Once populated, accesses are very efficient.
    See Also:
    Serialized Form
    • Field Summary

      Modifier and Type Field Description
      private java.lang.String prefix  
    • Constructor Summary

      Constructor Description
      SelfPopulatingList​(java.lang.String prefix, int initialSize)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.util.AbstractList<java.lang.String> fromTo​(java.lang.String prefix, int start, int end)  
      java.lang.String get​(int index)  
      • Methods inherited from class java.util.concurrent.CopyOnWriteArrayList

        add, add, addAll, addAll, addAllAbsent, addIfAbsent, clear, clone, contains, containsAll, equals, forEach, hashCode, indexOf, indexOf, isEmpty, iterator, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, stream, toArray
    • Field Detail

      • prefix

        private final java.lang.String prefix
    • Constructor Detail

      • SelfPopulatingList

        SelfPopulatingList​(java.lang.String prefix,
                           int initialSize)
    • Method Detail

      • fromTo

        private static java.util.AbstractList<java.lang.String> fromTo​(java.lang.String prefix,
                                                                       int start,
                                                                       int end)
      • get

        public java.lang.String get​(int index)
        Specified by:
        get in interface java.util.List<java.lang.String>
        get in class java.util.concurrent.CopyOnWriteArrayList<java.lang.String>