Sha256: 9937ee7a94bf11cf45958e25effd6a371e330ca4797d76d44a66a5a7512c6e1f

Contents?: true

Size: 878 Bytes

Versions: 11

Compression:

Stored size: 878 Bytes

Contents

package toxi.util.datatypes;

import java.util.List;

/**
 *
 * @author tux
 * @param <T>
 */
public interface ItemIndex<T> {

    /**
     *
     */
    public void clear();

    /**
     *
     * @param id
     * @return
     */
    public T forID(int id);

    /**
     *
     * @param item
     * @return
     */
    public int getID(T item);

    /**
     *
     * @return
     */
    public List<T> getItems();

    /**
     *
     * @param item
     * @return
     */
    public int index(T item);

    /**
     *
     * @param item
     * @return
     */
    public boolean isIndexed(T item);

    /**
     *
     * @param item
     * @param newItem
     * @return
     */
    public int reindex(T item, T newItem);

    /**
     *
     * @return
     */
    public int size();

    /**
     *
     * @param item
     * @return
     */
    public int unindex(T item);

}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
toxiclibs-2.1.0 src/main/java/toxi/util/datatypes/ItemIndex.java
toxiclibs-2.0.0 src/main/java/toxi/util/datatypes/ItemIndex.java
toxiclibs-1.0.0 src/toxi/util/datatypes/ItemIndex.java
toxiclibs-0.9.3 src/toxi/util/datatypes/ItemIndex.java
toxiclibs-0.9.2 src/toxi/util/datatypes/ItemIndex.java
toxiclibs-0.9.1 src/toxi/util/datatypes/ItemIndex.java
toxiclibs-0.9.0 src/toxi/util/datatypes/ItemIndex.java
toxiclibs-0.8.0 src/toxi/util/datatypes/ItemIndex.java
toxiclibs-0.6.0-java src/toxi/util/datatypes/ItemIndex.java
toxiclibs-0.5.1-java src/toxi/util/datatypes/ItemIndex.java
toxiclibs-0.5.0-java src/toxi/util/datatypes/ItemIndex.java