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

com.belladati.sdk.util.CachedList Maven / Gradle / Ivy

package com.belladati.sdk.util;

import java.util.List;

/**
 * A list that is cached by the client, a special case of a
 * {@link CachedCollection}. Call {@link #load()} to initially load its contents
 * from the server or to clear the cache and reload at a later time.
 * 
 * @author Chris Hennigfeld
 */
public interface CachedList extends CachedCollection> {

	/**
	 * Clears and loads the content of this list from the server.
	 * 
	 * @return this list (for chaining)
	 */
	@Override
	CachedList load();

	/**
	 * Synonymous to {@link #get()}, returns this CachedList's contents as an
	 * immutable List.
	 * 
	 * @return this CachedList's contents as an immutable List
	 */
	List toList();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy