/** * Returns the number of entries in the map. * * @return the map's size. */ public int size() { return this._map.size(); }
/** * Indicates whether map has any entries. * * @return true if the map is empty */ public boolean isEmpty() { return this._map.size() == 0; }
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>TObjectIntHashMap</code> that contains the entries * in the map passed to it. * * @param map the <tt>TObjectIntMap</tt> to be copied. */ public TObjectIntHashMap( TObjectIntMap<? extends K> map ) { this( map.size(), 0.5f, map.getNoEntryValue() ); if ( map instanceof TObjectIntHashMap ) { TObjectIntHashMap hashmap = ( TObjectIntHashMap ) map; this._loadFactor = hashmap._loadFactor; this.no_entry_value = hashmap.no_entry_value; //noinspection RedundantCast if ( this.no_entry_value != ( int ) 0 ) { Arrays.fill( _values, this.no_entry_value ); } setUp( (int) Math.ceil( DEFAULT_CAPACITY / _loadFactor ) ); } putAll( map ); }
/** * Creates a new <code>TObjectIntCustomHashMap</code> that contains the entries * in the map passed to it. * * @param map the <tt>TObjectIntMap</tt> to be copied. */ public TObjectIntCustomHashMap( HashingStrategy<? super K> strategy, TObjectIntMap<? extends K> map ) { this( strategy, map.size(), 0.5f, map.getNoEntryValue() ); if ( map instanceof TObjectIntCustomHashMap ) { TObjectIntCustomHashMap hashmap = ( TObjectIntCustomHashMap ) map; this._loadFactor = hashmap._loadFactor; this.no_entry_value = hashmap.no_entry_value; this.strategy = hashmap.strategy; //noinspection RedundantCast if ( this.no_entry_value != ( int ) 0 ) { Arrays.fill( _values, this.no_entry_value ); } setUp( (int) Math.ceil( DEFAULT_CAPACITY / _loadFactor ) ); } putAll( map ); }
double dY = Math.toDegrees(gridSizeMeters / SphericalDistanceLibrary.RADIUS_OF_EARTH_IN_M); double dX = dY / cosLat; sampleGrid = new SparseMatrixZSampleGrid<WTWD>(16, this.times.size(), dX, dY, coordinateOrigin); AccumulativeGridSampler.AccumulativeMetric<WTWD> metric = new SampleGridRenderer.WTWDAccumulativeMetric(cosLat, D0, V0, gridSizeMeters); AccumulativeGridSampler<WTWD> sampler = new AccumulativeGridSampler<WTWD>(sampleGrid, metric);
if ( that.size() != this.size() ) { return false;
if ( that.size() != this.size() ) { return false;
/** * Returns the number of entries in the map. * * @return the map's size. */ public int size() { return this._map.size(); }
/** * Indicates whether map has any entries. * * @return true if the map is empty */ public boolean isEmpty() { return this._map.size() == 0; }
/** * Returns the number of instances that are currently being counted. */ public int size() { return counts.size(); }
@Override public int size() { synchronized( mutex ) { return m.size(); } } @Override
/** * Indicates whether map has any entries. * * @return true if the map is empty */ @Override public boolean isEmpty() { return this._map.size() == 0; }
public int size() { synchronized( mutex ) { return m.size(); } } public boolean isEmpty(){
/** * 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(); }
/** * Indicates whether map has any entries. * * @return true if the map is empty */ public boolean isEmpty() { return this._map.size() == 0; }
/** * Returns the number of instances that are currently being counted. */ public int size() { return counts.size(); }
@Override public int test() { final TObjectIntMap<Integer> m_map = new TObjectIntHashMap<>( m_keys.length, m_fillFactor ); for ( int i = 0; i < m_keys.length; ++i ) m_map.put( m_keys[ i ], i ); for ( int i = 0; i < m_keys2.length; ++i ) m_map.put( m_keys2[ i ], i ); return m_map.size(); } }