boolean endsWith(final Literal literal) {

        // Check whether the answer is already in the cache
        final int index = literal.getIndex();
        final Boolean cached = myPostfixCache.get(index);
        if (cached != null) {
            return cached.booleanValue();
        }

        // Get the answer and cache the result
        final boolean result = literal.matches(myChars, myChars.length - literal.getLength());
        myPostfixCache.set(index, result);
        return result;
    }
boolean endsWith ( final Literal literal ) { final int index = literal . getIndex ( ) ; final Boolean cached = myPostfixCache . get ( index ) ; if ( cached != null ) { return cached . booleanValue ( ) ; } final boolean result = literal . matches ( myChars , myChars . length - literal . getLength ( ) ) ; myPostfixCache . set ( index , result ) ; return result ; }
Indicates whether this instance ends with the specified postfix.
@param literal The postfix that should be tested
@return <code>true</code> if the argument represents the postfix of this instance, <code>false</code> otherwise.