java.lang.Object
com.mrivanplays.annotationconfig.core.resolver.settings.LoadSetting<T>
Type Parameters:
T - load setting type

public final class LoadSetting<T> extends Object
Represents a basic load setting, which holds a String as a key identifier, and a Class as type.
Since:
2.0.0
Author:
MrIvanPlays
  • Field Details

  • Method Details

    • of

      public static <T> LoadSetting<T> of(String key, Class<T> type)
      Creates a new load setting.
      Type Parameters:
      T - value type
      Parameters:
      key - the key of the load setting
      type - the type of data this load setting handles
      Returns:
      load setting instance
    • getKey

      public String getKey()
      Returns the key of this load setting.
      Returns:
      the key
    • getType

      public Class<T> getType()
      Returns the class type of this load setting.
      Returns:
      the class type