public boolean hasAlias ( String aliasName ) { boolean result = false ; for ( Alias item : getAliasesList ( ) ) { if ( item . getName ( ) . equals ( aliasName ) ) { result = true ; } } return result ; }
Check if the given alias exists in the list of aliases or not .