private boolean isCorrectLogType(ListBlobItem current) {
        HashMap<String, String> metadata = ((CloudBlob) current).getMetadata();
        String logType = metadata.get("LogType");

        if (logType == null) {
            return true;
        }

        if (this.operations.contains(LoggingOperations.READ) && logType.contains("read")) {
            return true;
        }

        if (this.operations.contains(LoggingOperations.WRITE) && logType.contains("write")) {
            return true;
        }

        if (this.operations.contains(LoggingOperations.DELETE) && logType.contains("delete")) {
            return true;
        }

        return false;
    }
private boolean isCorrectLogType(ListBlobItem current) {
        HashMap<String, String> metadata = ((CloudBlob) current).getMetadata();
        String logType = metadata.get("LogType");

        if (logType == null) {
            return true;
        }

        if (this.operations.contains(LoggingOperations.READ) && logType.contains("read")) {
            return true;
        }

        if (this.operations.contains(LoggingOperations.WRITE) && logType.contains("write")) {
            return true;
        }

        if (this.operations.contains(LoggingOperations.DELETE) && logType.contains("delete")) {
            return true;
        }

        return false;
    }
private boolean isCorrectLogType ( ListBlobItem current ) { HashMap < String , String > metadata = ( ( CloudBlob ) current ) . getMetadata ( ) ; String logType = metadata . get ( "LogType" ) ; if ( logType == null ) { return true ; } if ( this . operations . contains ( LoggingOperations . READ ) && logType . contains ( "read" ) ) { return true ; } if ( this . operations . contains ( LoggingOperations . WRITE ) && logType . contains ( "write" ) ) { return true ; } if ( this . operations . contains ( LoggingOperations . DELETE ) && logType . contains ( "delete" ) ) { return true ; } return false ; }
Validates that the log given is of the correct log type.

@param current
the current log
@return whether or not the log is of the correct type.
Validates that the log given is of the correct log type .