Class StaticTypeCheckingSupport.ObjectArrayStaticTypesHelper

  • Enclosing class:
    StaticTypeCheckingSupport

    public static class StaticTypeCheckingSupport.ObjectArrayStaticTypesHelper
    extends java.lang.Object
    A DGM-like method which adds support for method calls which are handled specifically by the Groovy compiler.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T getAt​(T[] arr, int index)  
      static <T,​U extends T>
      void
      putAt​(T[] arr, int index, U object)  
      • Methods inherited from class java.lang.Object

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

      • ObjectArrayStaticTypesHelper

        public ObjectArrayStaticTypesHelper()
    • Method Detail

      • getAt

        public static <T> T getAt​(T[] arr,
                                  int index)
      • putAt

        public static <T,​U extends T> void putAt​(T[] arr,
                                                       int index,
                                                       U object)