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

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

Go to download

The BellaDati SDK allows accessing a BellaDati server from 3rd-party applications using Java. This project contains the SDK's interface definitions.

There is a newer version: 0.9.15.1
Show newest version
package com.belladati.sdk.util;

/**
 * A paginated list containing elements with an ID. Provides additional methods
 * to easily find elements with a given ID in the list.
 * 
 * @author Chris Hennigfeld
 */
public interface PaginatedIdList extends PaginatedList {

	/**
	 * Returns true if an element with the given ID has been loaded in
	 * this list. Note that this method returns false if such an
	 * element exists but on a page that hasn't yet been loaded from the server.
	 * 
	 * @param id ID of the element to look for
	 * @return true if an element with the given ID has been loaded in
	 *         this list
	 */
	boolean contains(String id);

	/**
	 * Returns the index of the element with the given ID in this list. Returns
	 * -1 if this list doesn't contain such an element or the element
	 * hasn't been loaded yet.
	 * 
	 * @param id ID of the element to search for
	 * @return the index of the element with the given ID in this list, or
	 *         -1 if it doesn't exist
	 */
	int indexOf(String id);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy