Package graphql.util

Class Interning

java.lang.Object
graphql.util.Interning

public class Interning extends 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 Details

    • intern

      public static @NonNull String intern(@NonNull String name)