public boolean containsKey( byte key ) { synchronized( mutex ) { return m.containsKey( key ); } } public boolean containsValue( Object value ){
public boolean containsKey( byte key ) { return m.containsKey( key ); } public boolean containsValue( Object val ) { return m.containsValue( val ); }
/** * Checks for the present of <tt>key</tt> in the keys of the map. * * @param key an <code>Object</code> value * @return a <code>boolean</code> value */ public boolean containsKey( Object key ) { if ( key == null ) return _map.containsKey( _map.getNoEntryKey() ); return key instanceof Byte && _map.containsKey( ( ( Byte ) key ).byteValue() ); }
/** {@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; }
public boolean containsKey( byte key ) { synchronized( mutex ) { return m.containsKey( key ); } } public boolean containsValue( Object value ){
public boolean containsKey( byte key ) { synchronized( mutex ) { return m.containsKey( key ); } } public boolean containsValue( Object value ){
@Override public boolean containsKey( byte key ) { synchronized( mutex ) { return m.containsKey( key ); } } @Override
public boolean containsKey( byte key ) { synchronized( mutex ) { return m.containsKey( key ); } } public boolean containsValue( Object value ){
@Override public boolean containsKey( byte key ) { return m.containsKey( key ); } @Override
public boolean containsKey( byte key ) { return m.containsKey( key ); } public boolean containsValue( Object val ) { return m.containsValue( val ); }
public boolean containsKey( byte key ) { return m.containsKey( key ); } public boolean containsValue( Object val ) { return m.containsValue( val ); }
public boolean containsKey( byte key ) { return m.containsKey( key ); } public boolean containsValue( Object val ) { return m.containsValue( val ); }
/** * Checks for the present of <tt>key</tt> in the keys of the map. * * @param key an <code>Object</code> value * @return a <code>boolean</code> value */ @Override public boolean containsKey( Object key ) { return key instanceof Byte && _map.containsKey( ( ( Byte ) key ).byteValue() ); }
/** * Checks for the present of <tt>key</tt> in the keys of the map. * * @param key an <code>Object</code> value * @return a <code>boolean</code> value */ public boolean containsKey( Object key ) { if ( key == null ) return _map.containsKey( _map.getNoEntryKey() ); return key instanceof Byte && _map.containsKey( ( ( Byte ) key ).byteValue() ); }
/** * Checks for the present of <tt>key</tt> in the keys of the map. * * @param key an <code>Object</code> value * @return a <code>boolean</code> value */ public boolean containsKey( Object key ) { if ( key == null ) return _map.containsKey( _map.getNoEntryKey() ); return key instanceof Byte && _map.containsKey( ( ( Byte ) key ).byteValue() ); }
/** * Checks for the present of <tt>key</tt> in the keys of the map. * * @param key an <code>Object</code> value * @return a <code>boolean</code> value */ public boolean containsKey( Object key ) { if ( key == null ) return _map.containsKey( _map.getNoEntryKey() ); return key instanceof Byte && _map.containsKey( ( ( Byte ) key ).byteValue() ); }
protected TextureArea[] getOverlaysForSlot(boolean isOutput, boolean isFluid, boolean isLast) { TextureArea base = isFluid ? GuiTextures.FLUID_SLOT : GuiTextures.SLOT; if(!isOutput && !isFluid && isLast && recipeBuilderSample instanceof IntCircuitRecipeBuilder) { //automatically add int circuit overlay to last item input slot return new TextureArea[]{base, GuiTextures.INT_CIRCUIT_OVERLAY}; } byte overlayKey = (byte) ((isOutput ? 2 : 0) + (isFluid ? 1 : 0) + (isLast ? 4 : 0)); if(slotOverlays.containsKey(overlayKey)) { return new TextureArea[] {base, slotOverlays.get(overlayKey)}; } return new TextureArea[] {base}; }
/** {@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; }
/** {@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; }
Object value = iter.value(); if ( value == null ) { if ( !( that.get( key ) == null && that.containsKey( key ) ) ) { return false;