/** {@inheritDoc} */ public char[] toArray() { char[] result = new char[ size() ]; char[] set = _set; byte[] states = _states; for ( int i = states.length, j = 0; i-- > 0; ) { if ( states[i] == FULL ) { result[j++] = set[i]; } } return result; }
/** {@inheritDoc} */ public boolean equals( Object other ) { if ( ! ( other instanceof TCharSet ) ) { return false; } TCharSet that = ( TCharSet ) other; if ( that.size() != this.size() ) { return false; } for ( int i = _states.length; i-- > 0; ) { if ( _states[i] == FULL ) { if ( ! that.contains( _set[i] ) ) { return false; } } } return true; }
/** {@inheritDoc} */ public char[] toArray() { char[] result = new char[ size() ]; char[] set = _set; byte[] states = _states; for ( int i = states.length, j = 0; i-- > 0; ) { if ( states[i] == FULL ) { result[j++] = set[i]; } } return result; }
/** {@inheritDoc} */ public char[] toArray() { char[] result = new char[ size() ]; char[] set = _set; byte[] states = _states; for ( int i = states.length, j = 0; i-- > 0; ) { if ( states[i] == FULL ) { result[j++] = set[i]; } } return result; }
/** {@inheritDoc} */ @Override public char[] toArray() { char[] result = new char[ size() ]; char[] set = _set; byte[] states = _states; for ( int i = states.length, j = 0; i-- > 0; ) { if ( states[i] == FULL ) { result[j++] = set[i]; } } return result; }
/** {@inheritDoc} */ public boolean equals( Object other ) { if ( ! ( other instanceof TCharSet ) ) { return false; } TCharSet that = ( TCharSet ) other; if ( that.size() != this.size() ) { return false; } for ( int i = _states.length; i-- > 0; ) { if ( _states[i] == FULL ) { if ( ! that.contains( _set[i] ) ) { return false; } } } return true; }
/** {@inheritDoc} */ public boolean equals( Object other ) { if ( ! ( other instanceof TCharSet ) ) { return false; } TCharSet that = ( TCharSet ) other; if ( that.size() != this.size() ) { return false; } for ( int i = _states.length; i-- > 0; ) { if ( _states[i] == FULL ) { if ( ! that.contains( _set[i] ) ) { return false; } } } return true; }
/** {@inheritDoc} */ public boolean equals( Object other ) { if ( ! ( other instanceof TCharSet ) ) { return false; } TCharSet that = ( TCharSet ) other; if ( that.size() != this.size() ) { return false; } for ( int i = _states.length; i-- > 0; ) { if ( _states[i] == FULL ) { if ( ! that.contains( _set[i] ) ) { return false; } } } return true; }
/** {@inheritDoc} */ @Override public boolean equals( Object other ) { if ( ! ( other instanceof TCharSet ) ) { return false; } TCharSet that = ( TCharSet ) other; if ( that.size() != this.size() ) { return false; } for ( int i = _states.length; i-- > 0; ) { if ( _states[i] == FULL ) { if ( ! that.contains( _set[i] ) ) { return false; } } } return true; }