(sType.equals(Messages.getString("MechSelectorDialog.All")) || (sType.equals(Messages.getString("MechSelectorDialog.ISAll")) && mechs[x].getType() <= TechConstants.T_IS_LEVEL_2) || (sType.equals(Messages.getString("MechSelectorDialog.ISAndClan")) && (mechs[x].getType() <= TechConstants.T_IS_LEVEL_2 || mechs[x].getType() == TechConstants.T_CLAN_LEVEL_2)) || (sType.equals(Messages.getString("MechSelectorDialog.MixedAll")) && (mechs[x].getType() == TechConstants.T_MIXED_BASE_IS_LEVEL_2 || mechs[x].getType() == TechConstants.T_MIXED_BASE_CLAN_LEVEL_2)) || TechConstants.getLevelDisplayableName(mechs[x].getType()).equals(sType))
((nType == TechConstants.T_ALL) || (nType == mechs[x].getType()) || ((nType == TechConstants.T_MIXED_ALL) && ((mechs[x].getType() == TechConstants.T_MIXED_BASE_IS_LEVEL_2) || (mechs[x].getType() == TechConstants.T_MIXED_BASE_CLAN_LEVEL_2))) || ((nType == TechConstants.T_LEVEL_2_ALL) && ((mechs[x].getType() == TechConstants.T_IS_LEVEL_1) || (mechs[x].getType() == TechConstants.T_IS_LEVEL_2) || (mechs[x].getType() == TechConstants.T_CLAN_LEVEL_2))) || ((nType == TechConstants.T_IS_LEVEL_2_ALL) && ((mechs[x].getType() == TechConstants.T_IS_LEVEL_1) || (mechs[x].getType() == TechConstants.T_IS_LEVEL_2))))
    private void filterMechs()    {        Vector vMechs = new Vector();        int nClass = m_chWeightClass.getSelectedIndex();        int nType = m_chType.getSelectedIndex();        String sType = m_chType.getSelectedItem();        int nUnitType = m_chUnitType.getSelectedIndex();        MechSummary[] mechs = MechSummaryCache.getInstance().getAllMechs();        if ( mechs == null ) {            System.err.println( "No units to filter!" ); //$NON-NLS-1$            return;        }        for (int x = 0; x < mechs.length; x++) {            if ( /* Weight */                (nClass == EntityWeightClass.SIZE || mechs[x].getWeightClass() == nClass)                && /* Technology Level */                (sType.equals(Messages.getString("MechSelectorDialog.All")) //$NON-NLS-1$                 || (sType.equals(Messages.getString("MechSelectorDialog.ISAll")) && //$NON-NLS-1$                     mechs[x].getType() <= TechConstants.T_IS_LEVEL_2)                 || (sType.equals(Messages.getString("MechSelectorDialog.ISAndClan")) && //$NON-NLS-1$                     (mechs[x].getType() <= TechConstants.T_IS_LEVEL_2 ||                      mechs[x].getType() == TechConstants.T_CLAN_LEVEL_2))                 || (sType.equals(Messages.getString("MechSelectorDialog.MixedAll")) && //$NON-NLS-1$                     (mechs[x].getType() ==                      TechConstants.T_MIXED_BASE_IS_LEVEL_2 ||                      mechs[x].getType() ==                      TechConstants.T_MIXED_BASE_CLAN_LEVEL_2))                 || TechConstants.getLevelDisplayableName(mechs[x].getType()).equals(sType))                && /* Unit Type (Mek, Infantry, etc.) */                ( nUnitType == UnitType.SIZE ||                  mechs[x].getUnitType().equals(UnitType.getTypeName(nUnitType))))                {                    vMechs.addElement(mechs[x]);                }        }        m_mechsCurrent = new MechSummary[vMechs.size()];        vMechs.copyInto(m_mechsCurrent);        sortMechs();    }