Examples of IntLongMap


Examples of com.almworks.integers.IntLongMap

   * Maps index to the value that starts at that index
   */
  private final IntLongMap myMap;

  public SameValuesLongList() {
    this(new IntLongMap());
  }
View Full Code Here

Examples of com.almworks.integers.IntLongMap

   * Maps index to the value that starts at that index
   */
  private final IntLongMap myMap;

  public SameValuesLongList() {
    this(new IntLongMap());
  }
View Full Code Here

Examples of com.gs.collections.api.map.primitive.IntLongMap

        }
        if (!(obj instanceof IntLongMap))
        {
            return false;
        }
        IntLongMap map = (IntLongMap) obj;
        return map.isEmpty();
    }
View Full Code Here

Examples of com.gs.collections.api.map.primitive.IntLongMap

        }
        if (!(obj instanceof IntLongMap))
        {
            return false;
        }
        IntLongMap map = (IntLongMap) obj;
        if (map.size() != 1)
        {
            return false;
        }
        return map.containsKey(this.key1) && this.value1 == map.getOrThrow(this.key1);
    }
View Full Code Here

Examples of com.gs.collections.api.map.primitive.IntLongMap

        if (!(obj instanceof IntLongMap))
        {
            return false;
        }

        IntLongMap other = (IntLongMap) obj;

        if (this.size() != other.size())
        {
            return false;
        }

        if (this.sentinelValues == null)
        {
            if (other.containsKey(EMPTY_KEY) || other.containsKey(REMOVED_KEY))
            {
                return false;
            }
        }
        else
        {
            if (this.sentinelValues.containsZeroKey && (!other.containsKey(EMPTY_KEY) || this.sentinelValues.zeroValue != other.getOrThrow(EMPTY_KEY)))
            {
                return false;
            }

            if (this.sentinelValues.containsOneKey && (!other.containsKey(REMOVED_KEY) || this.sentinelValues.oneValue != other.getOrThrow(REMOVED_KEY)))
            {
                return false;
            }
        }

        for (int i = 0; i < this.keys.length; i++)
        {
            int key = this.keys[i];
            if (isNonSentinel(key) && (!other.containsKey(key) || this.values[i] != other.getOrThrow(key)))
            {
                return false;
            }
        }
        return true;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.