1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-01-09 12:48:02 -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:
Sander Bogaert 2011-07-05 15:24:53 +02:00 committed by Andrew Chen
parent f652f6bf61
commit 815d162b3e

View File

@ -119,10 +119,20 @@ 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; }
}
/******************************************************************************* /*******************************************************************************
Real class specific code Real class specific code