Module watamebot

Interface IPropertyProvider<K,F,M extends IPropertyMapping>

Type Parameters:
K - - Property key type
F - - Property look up data type
M - - IPropertyMapping data type
All Known Implementing Classes:
GuildPropertyProvider, WatameBotDatabase

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

    Modifier and Type
    Method
    Description
    Get a property field associated with a specified key.
    boolean
    Check if the property associated with the specified key has already been constructed.
  • Method Details

    • getProperty

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

      boolean isPropertyPresent(@Nonnull 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.