Statistics
| Revision:

gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.lib / src / main / java / org / gvsig / tools / bookmarksandhistory / Bookmarks.java @ 1990

History | View | Annotate | Download (737 Bytes)

1 1979 omartinez
package org.gvsig.tools.bookmarksandhistory;
2
3 1986 omartinez
import java.util.List;
4
import java.util.function.Predicate;
5 1979 omartinez
import org.gvsig.tools.util.UnmodifiableBasicList;
6
7
/**
8
 *
9
 * @author jjdelcerro
10
 * @param <T>
11
 */
12 1986 omartinez
public interface Bookmarks<T> extends UnmodifiableBasicList<Bookmark<T>>{
13 1979 omartinez
    /**
14
     * This method add an element with a key name. It didn't clone the element.
15
     *
16
     * @param name Name of the element for the bookmark.
17
     * @param value
18
     * @return
19
     */
20
    public Bookmark add(String name, T value);
21
22 1990 jjdelcerro
    public Bookmark add(T value);
23
24 1979 omartinez
    public boolean remove(Bookmark bookmark);
25
26
    public boolean remove(String bookmarkName);
27 1986 omartinez
28
    public List<Bookmark<T>> filter(Predicate<Bookmark<T>> filter);
29 1979 omartinez
}