Interface Property<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T getDefaultValue()
      The default value for new instances of this property, or null if not applicable.
      java.lang.String getName()
      The "name" of this property.
      java.lang.Class<? extends T> getType()
      The data type for this property.
    • Method Detail

      • getName

        java.lang.String getName()
        The "name" of this property. Should be descriptive, but also unique. To this end, it is encouraged to make your keys fully qualified by prefixing them with your module id. For example: "mymod.MyProperty". Properties defined by the system start with "sys."
      • getType

        java.lang.Class<? extends T> getType()
        The data type for this property.
      • getDefaultValue

        @Nullable
        T getDefaultValue()
        The default value for new instances of this property, or null if not applicable.