Class SimplePlaceholder<T>

java.lang.Object
ml.karmaconfigs.api.common.utils.placeholder.util.Placeholder<T>
ml.karmaconfigs.api.common.utils.placeholder.SimplePlaceholder<T>
Type Parameters:
T - the placeholder type

public class SimplePlaceholder<T> extends Placeholder<T>
Karma simple placeholder
  • Constructor Details

    • SimplePlaceholder

      public SimplePlaceholder(String k, T val)
      Simple karma placeholder
      Parameters:
      k - the placeholder key
      val - the placeholder value
  • Method Details

    • getKey

      public String getKey()
      Get the placeholder key
      Specified by:
      getKey in class Placeholder<T>
      Returns:
      the placeholder key
    • getValue

      public T getValue(@Nullable @Nullable Object container)
      Get the placeholder value
      Specified by:
      getValue in class Placeholder<T>
      Parameters:
      container - the placeholder container
      Returns:
      the placeholder value
    • getType

      public Class<?> getType()
      Get the placeholder type
      Specified by:
      getType in class Placeholder<T>
      Returns:
      the placeholder type