mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-11 20:15:03 -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,10 +119,20 @@ public class AutoconfigInfo {
|
||||
public String url;
|
||||
|
||||
// first one is the language, second the text
|
||||
public ArrayList<Pair<String, String>> descriptions =
|
||||
new ArrayList<Pair<String, String>>();
|
||||
public ArrayList<MutablePair<String, String>> descriptions =
|
||||
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; }
|
||||
}
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
Real class specific code
|
||||
|
Loading…
Reference in New Issue
Block a user