mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-14 05:25:07 -05:00
Added a MutablePair class as wrapper of two objects that can be changed after initialisation <> standard android version of Pair.
This commit is contained in:
parent
f652f6bf61
commit
815d162b3e
@ -119,8 +119,18 @@ public class AutoconfigInfo {
|
|||||||
public String url;
|
public String url;
|
||||||
|
|
||||||
// first one is the language, second the text
|
// first one is the language, second the text
|
||||||
public ArrayList<Pair<String, String>> descriptions =
|
public ArrayList<MutablePair<String, String>> descriptions =
|
||||||
new ArrayList<Pair<String, String>>();
|
new ArrayList<MutablePair<String, String>>();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class MutablePair<K, V> extends Pair<K, V>{
|
||||||
|
private K first;
|
||||||
|
private V second;
|
||||||
|
public MutablePair(K first, V second) {
|
||||||
|
super(first, second);
|
||||||
|
}
|
||||||
|
public void setFirst(K val){ this.first = val; }
|
||||||
|
public void setSecond(V val){ this.second = val; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user