[gxml] GomPairedMap; GomThreeMap: Renamed get() to item()



commit ca32559631da7b81a0a7272f435267eb9afaf8b1
Author: Daniel Espinosa <esodan gmail com>
Date:   Thu Feb 8 09:50:28 2018 -0600

    GomPairedMap; GomThreeMap: Renamed get() to item()
    
    For backward API compatibility

 gxml/GomCollections.vala | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/gxml/GomCollections.vala b/gxml/GomCollections.vala
index 2046f22..c160d27 100644
--- a/gxml/GomCollections.vala
+++ b/gxml/GomCollections.vala
@@ -573,7 +573,7 @@ public interface GXml.GomPairedMap : Object, GomCollection, Traversable<DomEleme
   /**
    * Returns an {@link DomElement} in the collection using given string keys.
    */
-  public abstract DomElement? get (string primary_key, string secondary_key);
+  public abstract DomElement? item (string primary_key, string secondary_key);
   /**
    * Returns true if @key is used in collection as primery key.
    */
@@ -785,6 +785,9 @@ public class GXml.GomHashPairedMap : GXml.BaseCollection, GomPairedMap {
   public override void clear () {
     _hashtable = new HashMap<string,HashMap<string,int>> ();
   }
+  public DomElement? item (string primary_key, string secondary_key) {
+    return get (primary_key, secondary_key);
+  }
   public Set<string> primary_keys_set {
     owned get {
       var l = new HashSet<string> ();
@@ -855,7 +858,7 @@ public interface GXml.GomThreeMap : Object, GomCollection, Traversable<DomElemen
   /**
    * Returns an {@link DomElement} in the collection using given string keys.
    */
-  public abstract DomElement? get (string primary_key, string secondary_key, string third_key);
+  public abstract DomElement? item (string primary_key, string secondary_key, string third_key);
   /**
    * Returns true if @key is used in collection as primery key.
    */
@@ -1133,6 +1136,10 @@ public class GXml.GomHashThreeMap : GXml.BaseCollection, GomThreeMap {
   public override void clear () {
     _hashtable = new HashMap<string,HashMap<string,HashMap<string,int>>> ();
   }
+
+  public DomElement? item (string primary_key, string secondary_key, string third_key) {
+    return get (primary_key, secondary_key, third_key);
+  }
   public Set<string> primary_keys_set {
     owned get {
       var l = new HashSet<string> ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]