for (int k = 0; k < maxDepth; k++) {
final int bidsOffset = maxDepth - k - 1;
final int asksOffset = k;
final MarketBookEntry bidEntry;
if (k < bidDepth) {
bidEntry = bids[bidsOffset];
} else {
bidEntry = NULL_BOOK_ENTRY;
}
final MarketBookEntry askEntry;
if (k < askDepth) {
askEntry = asks[asksOffset];
} else {
askEntry = NULL_BOOK_ENTRY;
}