Interface Data


public interface Data

A data is composed of a key, a string, and a value, an object

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(int amount)
     
    long
    Permet de savoir quand la valeur doit expirer.
    The key
    The value that is stored
    boolean
    Allows to know if a data is expired
    void
    remove(int amount)
     
  • Method Details

    • getKey

      String getKey()
      The key
      Returns:
      key
    • getValue

      Object getValue()
      The value that is stored
      Returns:
      value
    • getExpiredAt

      long getExpiredAt()
      Permet de savoir quand la valeur doit expirer. If the value is 0 then it never exits
      Returns:
      expired at
    • isExpired

      boolean isExpired()
      Allows to know if a data is expired
      Returns:
      boolean
    • add

      void add(int amount)
    • remove

      void remove(int amount)