public static Predicate<ByteBuffer> createProcessingStatePredicate(final ProcessingState... processingStates) {
        if (processingStates == null || processingStates.length == 0) {
            return byteBuffer -> false;
        } else {
            final byte[] processingStateIds = new byte[processingStates.length];
            int i = 0;
            for (final ProcessingState processingState : processingStates) {
                processingStateIds[i++] = processingState.getId();
            }
            return byteBuffer -> {
                byte bState = byteBuffer.get(PROCESSING_STATE_OFFSET);
                for (final byte processingStateId : processingStateIds) {
                    if (processingStateId == bState) {
                        return true;
                    }
                }
                return false;
            };
        }
    }
Creates a predicate that is an OR of the passed states.
stroom-pipeline/src/main/java/stroom/pipeline/refdata/store/offheapstore/serdes/RefDataProcessingInfoSerde.java