/** * Returns the number of entries in the map. * * @return the map's size. */ public int size() { return this._map.size(); }
public int size() { synchronized( mutex ) { return m.size(); } } public boolean isEmpty(){
public int size() { return m.size(); } public boolean isEmpty() { return m.isEmpty(); }
/** * Creates a new <code>TByteObjectHashMap</code> that contains the entries * in the map passed to it. * * @param map the <tt>TByteObjectMap</tt> to be copied. */ public TByteObjectHashMap( TByteObjectMap<? extends V> map ) { this( map.size(), 0.5f, map.getNoEntryKey() ); putAll( map ); }
/** {@inheritDoc} */ public boolean equals( Object other ) { if ( ! ( other instanceof TByteObjectMap ) ) { return false; } TByteObjectMap that = ( TByteObjectMap ) other; if ( that.size() != this.size() ) { return false; } try { TByteObjectIterator iter = this.iterator(); while ( iter.hasNext() ) { iter.advance(); byte 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; }
/** * Returns the number of entries in the map. * * @return the map's size. */ public int size() { return this._map.size(); }
/** * Returns the number of entries in the map. * * @return the map's size. */ public int size() { return this._map.size(); }
/** * Returns the number of entries in the map. * * @return the map's size. */ @Override public int size() { return this._map.size(); }
/** * Returns the number of entries in the map. * * @return the map's size. */ public int size() { return this._map.size(); }
@Override public int size() { synchronized( mutex ) { return m.size(); } } @Override
public int size() { synchronized( mutex ) { return m.size(); } } public boolean isEmpty(){
public int size() { synchronized( mutex ) { return m.size(); } } public boolean isEmpty(){
public int size() { return m.size(); } public boolean isEmpty() { return m.isEmpty(); }
public int size() { synchronized( mutex ) { return m.size(); } } public boolean isEmpty(){
public int size() { return m.size(); } public boolean isEmpty() { return m.isEmpty(); }
public int size() { return m.size(); } public boolean isEmpty() { return m.isEmpty(); }
/** * Creates a new <code>TByteObjectHashMap</code> that contains the entries * in the map passed to it. * * @param map the <tt>TByteObjectMap</tt> to be copied. */ public TByteObjectHashMap( TByteObjectMap<? extends V> map ) { this( map.size(), 0.5f, map.getNoEntryKey() ); putAll( map ); }
/** * Creates a new <code>TByteObjectHashMap</code> that contains the entries * in the map passed to it. * * @param map the <tt>TByteObjectMap</tt> to be copied. */ public TByteObjectHashMap( TByteObjectMap<? extends V> map ) { this( map.size(), 0.5f, map.getNoEntryKey() ); putAll( map ); }
/** * Creates a new <code>TByteObjectHashMap</code> that contains the entries * in the map passed to it. * * @param map the <tt>TByteObjectMap</tt> to be copied. */ public TByteObjectHashMap( TByteObjectMap<? extends V> map ) { this( map.size(), 0.5f, map.getNoEntryKey() ); putAll( map ); }
/** * Creates a new <code>TByteObjectHashMap</code> that contains the entries * in the map passed to it. * * @param map the <tt>TByteObjectMap</tt> to be copied. */ public TByteObjectHashMap( TByteObjectMap<V> map ) { this( map.size(), 0.5f, map.getNoEntryKey() ); putAll( map ); }