[folks] Change IndividualAggregator.get_[all_]potential_matches() to return a Map
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Change IndividualAggregator.get_[all_]potential_matches() to return a Map
- Date: Sat, 23 Apr 2011 21:03:18 +0000 (UTC)
commit 290c04b913002f5630b3ce3a72620f5b9964cae8
Author: Philip Withnall <philip withnall collabora co uk>
Date: Wed Apr 20 01:02:54 2011 +0100
Change IndividualAggregator.get_[all_]potential_matches() to return a Map
We don't want to expose the fact that we're using a *hash* map internally.
Helps: bgo#640092
NEWS | 4 ++++
folks/individual-aggregator.vala | 8 ++++----
2 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/NEWS b/NEWS
index 64d7212..9fa9354 100644
--- a/NEWS
+++ b/NEWS
@@ -35,6 +35,10 @@ API changes:
* IndividualAggregator.individuals_changed now uses
Set<Individual>-typed parameters
* IndividualAggregator.link_personas() now takes a Set<Persona>
+* IndividualAggregator.get_all_potential_matches() now returns a
+ Map<Individual, Map<Individual, MatchResult>>
+* IndividualAggregator.get_potential_matches() now returns a
+ Map<Individual, MatchResult>
Overview of changes from libfolks 0.4.0 to libfolks 0.5.0
=========================================================
diff --git a/folks/individual-aggregator.vala b/folks/individual-aggregator.vala
index 97819cc..831a7a1 100644
--- a/folks/individual-aggregator.vala
+++ b/folks/individual-aggregator.vala
@@ -230,9 +230,9 @@ public class Folks.IndividualAggregator : Object
/**
* Get all matches for a given { link Individual}.
*
- * @since 0.5.0
+ * @since UNRELEASED
*/
- public HashMap<Individual, MatchResult> get_potential_matches
+ public Map<Individual, MatchResult> get_potential_matches
(Individual matchee, MatchResult min_threshold = MatchResult.VERY_HIGH)
{
HashMap<Individual, MatchResult> matches =
@@ -257,9 +257,9 @@ public class Folks.IndividualAggregator : Object
/**
* Get all combinations between all { link Individual}s.
*
- * @since 0.5.0
+ * @since UNRELEASED
*/
- public HashMap<Individual, HashMap<Individual, MatchResult>>
+ public Map<Individual, Map<Individual, MatchResult>>
get_all_potential_matches
(MatchResult min_threshold = MatchResult.VERY_HIGH)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]