public final boolean isValid(Class < T > javaClass,
            CobolContext cobolContext, byte[] hostData, int start) {

        int hostBytesLen = getBytesLen();

        // Is buffer large enough to contain this type?
        if (hostData.length < start + hostBytesLen) {
            return false;
        }

        // Let specialized classes perform their validation
        if (!isValidInternal(javaClass, cobolContext, hostData, start)) {
            return false;
        }

        // If required to check within range, need to convert
        FromHostPrimitiveResult < T > result = fromHostInternal(javaClass,
                cobolContext, hostData, start);
        return result.isSuccess() && isWithinRange(result.getValue());

    }
public final boolean isValid ( Class < T > javaClass , CobolContext cobolContext , byte [ ] hostData , int start ) { int hostBytesLen = getBytesLen ( ) ; if ( hostData . length < start + hostBytesLen ) { return false ; } if ( ! isValidInternal ( javaClass , cobolContext , hostData , start ) ) { return false ; } FromHostPrimitiveResult < T > result = fromHostInternal ( javaClass , cobolContext , hostData , start ) ; return result . isSuccess ( ) && isWithinRange ( result . getValue ( ) ) ; }
{@inheritDoc}