Module watamebot

Interface IPropertyProvider<K,L,M extends IPropertyMapping>

Type Parameters:
K - Property key type
L - Property look up data type
M - IPropertyMapping data type
All Known Subinterfaces:
IGuildPropertyProvider
All Known Implementing Classes:
WatameBotDatabase

public interface IPropertyProvider<K,L,M extends IPropertyMapping>
An interface containing methods used for constructing/providing IPropertyFields.
Author:
Ashley
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull IProperty<K,L,M>
    Get a property field associated with a specified key.
    boolean
    Check if the property associated with the specified key has already been constructed.
    @NotNull Set<K>
    Get a set of all registered keys this provider has constructed.
  • Method Details

    • getProperty

      @NotNull @NotNull IProperty<K,L,M> getProperty(@NotNull K key)
      Get a property field associated with a specified key.
      Parameters:
      key - - the property's key
      Returns:
      Returns an ImmutableProperty pointing to the specified key
    • isPropertyPresent

      boolean isPropertyPresent(@NotNull K key)
      Check if the property associated with the specified key has already been constructed.
      Parameters:
      key - - the property's key
      Returns:
      Returns true if the property's key has already been registered/constructed.
    • keySet

      @NotNull @NotNull Set<K> keySet()
      Get a set of all registered keys this provider has constructed.
      Returns:
      Returns a Set of IPropertyProvider