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

net.java.html.lib.angular.ICacheObject Maven / Gradle / Ivy

package net.java.html.lib.angular;
public class ICacheObject extends net.java.html.lib.Objs {
  protected ICacheObject(net.java.html.lib.Objs.Constructor c, java.lang.Object js) {
    super(c, js);
  }
  private static final class $Constructor extends net.java.html.lib.Objs.Constructor {
    $Constructor() {
      super(ICacheObject.class);
    }
    @Override
    public ICacheObject create(java.lang.Object obj) {
      return obj == null ? null : new ICacheObject(this, obj);
    }
  };
  private static final $Constructor $AS = new $Constructor();
  public static ICacheObject $as(java.lang.Object obj) {
    return $AS.create(obj);
  }
  /**
  * Destroys the Cache object entirely, removing it from the $cacheFactory set.
  */
  public void destroy() {
    $Typings$.destroy$88($js(this));
  }
  /**
  * Retrieves named data stored in the Cache object.
  *
  * @param key the key of the data to be retrieved
  */
  public  T get(java.lang.String key) {
    return (T)$Typings$.get$89($js(this), key);
  }
  /**
  * Retrieve information regarding a particular Cache.
  */
  public net.java.html.lib.Objs info() {
    return $Typings$.info$90($js(this));
  }
  /**
  * Inserts a named entry into the Cache object to be retrieved later, and incrementing the size of the cache if the key was not already present in the cache. If behaving like an LRU cache, it will also remove stale entries from the set.
  *
  * It will not insert undefined values into the cache.
  *
  * @param key the key under which the cached data is stored.
  * @param value the value to store alongside the key. If it is undefined, the key will not be stored.
  */
  public  T put(java.lang.String key, T value) {
    return (T)$Typings$.put$91($js(this), key, /* FirstTypeNode*/$js(value));
  }
  /**
  * Inserts a named entry into the Cache object to be retrieved later, and incrementing the size of the cache if the key was not already present in the cache. If behaving like an LRU cache, it will also remove stale entries from the set.
  *
  * It will not insert undefined values into the cache.
  *
  * @param key the key under which the cached data is stored.
  * @param value the value to store alongside the key. If it is undefined, the key will not be stored.
  */
  public  T put(java.lang.String key) {
    return (T)$Typings$.put$92($js(this), key);
  }
  /**
  * Removes an entry from the Cache object.
  *
  * @param key the key of the entry to be removed
  */
  public void remove(java.lang.String key) {
    $Typings$.remove$93($js(this), key);
  }
  /**
  * Clears the cache object of any entries.
  */
  public void removeAll() {
    $Typings$.removeAll$94($js(this));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy