Package com.uwyn.jhighlight.pcj.map

Examples of com.uwyn.jhighlight.pcj.map.CharKeyMap


 
    public boolean equals(Object obj)
  {
        if (!(obj instanceof CharKeyMap))
            return false;
        CharKeyMap map = (CharKeyMap)obj;
        if (size()!=map.size())
            return false;
        CharKeyMapIterator i = entries();
        while (i.hasNext())
    {
            i.next();
            char k = i.getKey();
            Object v = i.getValue();
            if (v==null)
      {
                if (map.get(k)!=null)
                    return false;
                if (!map.containsKey(k))
                    return false;
            }
      else
      {
                if (!v.equals(map.get(k)))
                    return false;
            }
        }
        return true;
    }
View Full Code Here

TOP

Related Classes of com.uwyn.jhighlight.pcj.map.CharKeyMap

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.