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 |
package org.gvsig.tools.bookmarksandhistory; |
---|---|
2 |
|
3 |
import java.util.List; |
4 |
import java.util.function.Predicate; |
5 |
import org.gvsig.tools.util.UnmodifiableBasicList; |
6 |
|
7 |
/**
|
8 |
*
|
9 |
* @author jjdelcerro
|
10 |
* @param <T>
|
11 |
*/
|
12 |
public interface Bookmarks<T> extends UnmodifiableBasicList<Bookmark<T>>{ |
13 |
/**
|
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 |
public Bookmark add(T value);
|
23 |
|
24 |
public boolean remove(Bookmark bookmark); |
25 |
|
26 |
public boolean remove(String bookmarkName); |
27 |
|
28 |
public List<Bookmark<T>> filter(Predicate<Bookmark<T>> filter); |
29 |
} |