All Downloads are FREE. Search and download functionalities are using the official Maven repository.

co.easimart.EasimartObjectCurrentController Maven / Gradle / Ivy

package co.easimart;

import bolts.Task;

/** package */ interface EasimartObjectCurrentController {

  /**
   * Persist the currentEasimartObject
   * @param object
   * @return
   */
  Task setAsync(T object);

  /**
   * Get the persisted currentEasimartObject
   * @return
   */
  Task getAsync();

  /**
   * Check whether the currentEasimartObject exists or not
   * @return
   */
  Task existsAsync();

  /**
   * Judge whether the given EasimartObject is the currentEasimartObject
   * @param object
   * @return {@code true} if the give {@link EasimartObject} is the currentEasimartObject
   */
  boolean isCurrent(T object);

  /**
   * A test helper to reset the current EasimartObject. This method nullifies the in memory
   * currentEasimartObject
   */
  void clearFromMemory();

  /**
   * A test helper to reset the current EasimartObject. This method nullifies the in memory and in
   * disk currentEasimartObject
   */
  void clearFromDisk();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy