Class KeysSupport

java.lang.Object
io.micronaut.serde.KeysSupport

@Internal public final class KeysSupport extends Object
Support logic for creating Keys instances.
Since:
3.1
Author:
Denis Stepanov
  • Method Details

    • create

      public static Keys create(List<String> keys)
      Create a key set for the supplied keys.
      Parameters:
      keys - The keys
      Returns:
      The key set
    • create

      public static Keys create(List<String> keys, boolean caseInsensitive)
      Create a key set for the supplied keys.
      Parameters:
      keys - The keys
      caseInsensitive - Whether key matching should be case-insensitive
      Returns:
      The key set
    • indexOf

      public static int indexOf(KeysProvider provider)
      Find the contributed key data index for the given provider.
      Parameters:
      provider - The keys provider
      Returns:
      The contributed data index, or -1 if no provider contributes this type
    • get

      public static Object[] get(Keys keys, int keysIndex)
      Find contributed key data by index.
      Parameters:
      keys - The keys
      keysIndex - The keys data index
      Returns:
      The contributed key data