Package graphql.util

Class Interning


  • public class Interning
    extends java.lang.Object
    Interner allowing object-identity comparison of key entities like field names. This is useful on hotspot areas like the engine where we look up field names a lot inside maps, and those maps use object identity first inside the key lookup code.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static @NotNull java.lang.String intern​(@NotNull java.lang.String name)  
      • Methods inherited from class java.lang.Object

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

      • intern

        @NotNull
        public static @NotNull java.lang.String intern​(@NotNull
                                                       @NotNull java.lang.String name)