aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/list/ListNameMemento.java
blob: 6d5d4815718dadd6f787eab7dcf63ed343e2d47c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package cgeo.geocaching.list;

import org.apache.commons.lang3.StringUtils;

/**
 * Memento to remember list name suggestions from search terms.
 */
public class ListNameMemento {
    public static final ListNameMemento EMPTY = new ListNameMemento();
    private String newListName = StringUtils.EMPTY;

    public String rememberTerm(final String term) {
        newListName = term;
        return term;
    }

    public String getTerm() {
        return newListName;
    }

}