/** {@inheritDoc} */ @Override public boolean equals(Object other) { if (!(other instanceof TFloatObjectMap)) { return false; } TFloatObjectMap that = (TFloatObjectMap) other; if (that.size() != this.size()) { return false; } try { TFloatObjectIterator iter = this.iterator(); while (iter.hasNext()) { iter.advance(); float key = iter.key(); Object value = iter.value(); if (value == null) { if (!(that.get(key) == null && that.containsKey(key))) { return false; } } else { if (!value.equals(that.get(key))) { return false; } } } } catch (ClassCastException ex) { // unused. } return true; }
public V get(float key) { synchronized (mutex) { return m.get(key); } }